Skip to content

This code uses HTML, CSS, and JavaScript to create a dice game. It generates random numbers between 1 and 6, updates the images of the dice on the page, and displays a message indicating the winner based on the roll values. "Draw" is displayed if both rolls are equal, otherwise it shows "Player 1 Wins" or "Player 2 Wins ".

Notifications You must be signed in to change notification settings

Vishveshwara/Dice-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice-Game

This code uses HTML, CSS, and JavaScript to create a dice game. It generates random numbers between 1 and 6, updates the images of the dice on the page, and displays a message indicating the winner based on the roll values. "Draw" is displayed if both rolls are equal, otherwise it shows "Player 1 Wins" or "Player 2 Wins ".

Here is the Link to play the Game: https://vishveshwara.github.io/Dice-Game/

About

This code uses HTML, CSS, and JavaScript to create a dice game. It generates random numbers between 1 and 6, updates the images of the dice on the page, and displays a message indicating the winner based on the roll values. "Draw" is displayed if both rolls are equal, otherwise it shows "Player 1 Wins" or "Player 2 Wins ".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published