GithubHelp home page GithubHelp logo

codepapa360 / pig-game Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 530 KB

My first simple game that i made while learning Javascript.

Home Page: https://pig-game-codepapa.netlify.app/

HTML 16.43% JavaScript 48.85% CSS 34.72%
css3 html javascript javascript-game javascript-practice javascriptgame js webdevelopment

pig-game's Introduction

Pig-game

My first simple game! I'm learning a lot from Jonas Schmedtmann's Javascript course and after completing some of the parts of the course I just finished making this simple Pig game. I know I didn't follow the DRY rule. I just wanted my code to work now. By the way he is a very good teacher.

Rules of this Pig game:

  • You need to roll the dice to accumulate the current scores.
  • If you press the Hold button, then the current scores will be added/saved to the permanent score and the dice will be shifted to the next player.
  • While you are accumulating the current scores, if your dice is "1", you will lose all the current scores that you accumulated. (Not your permanent scores)
  • Whoever can make 100 permanent scores first, will win.

Screenshot

Flowchart

pig-game's People

Contributors

codepapa360 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.