Skip to content

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.

Notifications You must be signed in to change notification settings

alejandrotoledoweb/roll-dice-game

Repository files navigation

Roll Dice Game

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.

GAME RULES:

  • 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.

screenshot

Built with

I built this repo using:

  • HMTL
  • CSS
  • JAVASCRIPT

Live Demo

Click on this link to play the game

Author

👤 Alejandro Toledo

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

Have a pc running Linux, MacOS or Windows.

Setup

Get a copy of the repo using this command

git clone https://github.com/alejandrotoledoweb/roll-dice-game.git

Usage

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.

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published