/Pig-Game

Pig game with JavaScript

Primary LanguageJavaScript

Pig Game

This is the famous Pig game made by me, I made this game as way to put into practice and improve my JavaScript skills. I got the inspiration to build this game from a friend of mine, he made a similar one and I liked it and I thought, let me make it mine too, and this is my version of the game 😁 The rules of the game are very clear, let me explain to you.

Game Rules

The Pig Game is a very simple jeopardy dice game in which two players race to reach 100 points. Each turn, a player repeatedly rolls a dice until either a 1 is rolled or the player holds and scores the sum of the rolls (i.e. the turn total). At any time during a player's turn, the player is faced with two decisions:

  • ROLL DICE - If the player rolls a

    • 1: the player scores nothing and it becomes the opponent's turn.
    • 2 - 6: the number is added to the player's turn total and the player's turn continues.
  • HOLD - The turn total is added to the player's score and it becomes the opponent's turn.


Tecnologies

  • Enoque-HTML HTML
  • Enoque-CSS CSS
  • Enoque-Js JavaScript

Live video

Pig.Game.-.12.August.2022.mp4

Feel free

You are free to clone the repository or download it and do whatever you want with it, you can improve the game in your own way.