Home Skills portfolio javascript Blog Contact me
Home Skills portfolio javascript Blog Contact me

Pig Game

Pig Game is a very simple game done using vanilla javascript where I have been able to learn how to target elements in html in addition to using addEventListeners. In this game, player1 starts by rolling the dice and they have the possibility to hold their score or keep rolling the dice trying to get to the winning score. however, if the number rolled is 1 then the player loses their entire score and its player2's turn.

Technologies