Member-only story

Pig game Project with Javascript

YvonneDev
3 min readMay 22, 2019

--

Recently I am reviewing the Javascript with the course called The complete Javascript Course 2019:build real project from udemy.

Online demo

Keep up following the basic knowledge and projects from it.

The final solution is the Pig game with two dices and two players.

The rules:

HTML:
Two players panel with scores and current score.
Three buttons for resetting the game, rolling the dices, and holding the current players’ score/
At the bottom are the Final scores for winners’ reach point. Normally the rules’ final score is 100.

CSS:
The background color and the dot are changed when switching the player, because of the class name active added.

--

--

YvonneDev
YvonneDev

Written by YvonneDev

❤️Front-end Web Development self-taught *share what I learned*

No responses yet