A simple dice game created using HTML, CSS and JavaScript.
- To create and build a simple game using JavaScript.
- Used simple query selectors, math function and random function in JavaScript to implement the game.
- Press the refresh button (F5) to refresh the page.
- If the number on the dice of player 1 is greater than the number on the dice of player 2, then player 1 wins.
- If the number on the dice of player 1 is less than the number on the dice of player 2, then player 2 wins.
- If the number on the dice of player 1 is equal to the number on the dice of player 2, then it is a draw.
- JavaScript
- HTML
- CSS
To watch website live, click here