This project is a practice of creating a simple roll-dice game. You can interact with the app in the browser of your local machine and play with two players. Built with JavaScript.
- The game has 2 players, playing in rounds.
- In each turn, a player rolls a dice as many times as he whishes. Each result get added to his ROUND score.
- BUT, if the player rolls a 1, all his ROUND score gets lost. After that, it's the next player's turn.
- The player can choose to 'Hold', which means that his ROUND score gets added to his GLOBAL score. After that, it's the next player's turn.
- The first player to reach 100 points on GLOBAL score wins the game.
I built this repo using:
- HMTL
- CSS
- JAVASCRIPT
Click on this link to play the game
👤 Alejandro Toledo
- GitHub: @alejandrotoledoweb
- Twitter: @alejot
- LinkedIn: Alejandro Toledo
To get a local copy up and running follow these simple example steps.
Have a pc running Linux, MacOS or Windows.
Get a copy of the repo using this command
git clone https://github.com/alejandrotoledoweb/roll-dice-game.git
To acces the repo run this command cd roll-dice-game
, and then open the index.html
file with the live server of your choice.
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.