Member-only story
Recently I am reviewing the Javascript with the course called The complete Javascript Course 2019:build real project from udemy.
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.