https://github.com/codewithalamin/pig-game
My first simple game that i made while learning Javascript.
https://github.com/codewithalamin/pig-game
codewithalamin css3 html javascript javascript-game javascript-practice javascriptgame js webdevelopment
Last synced: about 1 month ago
JSON representation
My first simple game that i made while learning Javascript.
- Host: GitHub
- URL: https://github.com/codewithalamin/pig-game
- Owner: CodeWithAlamin
- Created: 2022-12-05T14:10:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T11:47:30.000Z (4 months ago)
- Last Synced: 2024-11-11T03:18:05.183Z (3 months ago)
- Topics: codewithalamin, css3, html, javascript, javascript-game, javascript-practice, javascriptgame, js, webdevelopment
- Language: JavaScript
- Homepage: https://pig-game-alamin.netlify.app/
- Size: 518 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
- [👉Start Playing👈](https://pig-game-alamin.netlify.app/)
## 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