lcim/tenzy-game

A game of two players using 10 dice. It involves flipping all the dice to one face value, eg threes, or sixes. After five sets, the player with most set wins is declared winner.

โ˜… 0Forks 0JavaScriptGitHub โ†—Compare

README

cofcd4a2781c5506f6c8018da

Quick start:

$ yarn # npm install
$ yarn build # npm run build

Development

npm run start in watch-mode to continually compile the JavaScript as you work:

$ yarn watch # npm run watch

About Tenzies Game: It's a continuation of the project started at Scrimba in "Learn React" series. I took the skeleton and transformed it into a nice game.

chiadi-tenzies-game

A game of two players using 10 dice. It involves flipping all the dice to one face value, eg threes, or sixes. After five sets, the player with most set wins is declared winner. NOTES:

  1. Game of two named players from user input;
  2. Involves players rolling 10 dice to make sure all dice have same face Value; eg all have face 4 or 6 etc. This condition is called a tenzie.
  3. When a die face is selected, the face value remains unchanged as one rolls the dice to get matching face values
  4. Number of attempts by each player is recorded;
  5. Each player must achieve 5 tenzies; meaning the game involves playing 5 rounds/sets.
  6. The number of attempts made before achieving tenzy is stored in each player's history.
  7. After each round, the attempts are compared and a winner for that round declared; the overall winner is decided based on the number of sets won, not based on overall number of attempts.
  8. The least number of attempts in achieving a tenzy is stored and updated in localStorage as a newRecored. Happy gaming experience!

About Scrimba

At Scrimba our goal is to create the best possible coding school at the cost of a gym membership! ๐Ÿ’œ If we succeed with this, it will give anyone who wants to become a software developer a realistic shot at succeeding, regardless of where they live and the size of their wallets ๐ŸŽ‰ The Frontend Developer Career Path aims to teach you everything you need to become a Junior Developer, or you could take a deep-dive with one of our advanced courses ๐Ÿš€

Happy Coding!

Contributors

lcim

Issues