Skip to content

saketgautam/Dice-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice-Game

A simple dice game created using HTML, CSS and JavaScript.

Idea

  • To create and build a simple game using JavaScript.
  • Used simple query selectors, math function and random function in JavaScript to implement the game.

How to play

  • 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.

Tools Used

  1. JavaScript
  2. HTML
  3. CSS

To watch website live, click here