Skip to content

SyedFahad11/Dice-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice Game using JavaScript Document Object Model (DOM)

This project is a simple dice game implemented using JavaScript's Document Object Model (DOM). The game presents users with a title, "Refresh Me," along with two dice for Player 1 and Player 2.

How it works

Upon refreshing the webpage, the dice are thrown randomly for both Player 1 and Player 2. Each player receives a random value on their respective dice. The webpage then announces a winner based on whose dice value is higher.
Deployment link Click Here

Features

Utilizes JavaScript DOM for dynamic webpage manipulation. Randomly generates dice values for both Player 1 and Player 2. Announces the winner based on the higher dice value. Provides a simple and interactive gameplay experience.

Technologies Used

HTML CSS JavaScript (DOM)

How to Run

To run the game locally:

Clone the repository to your local machine. Open the index.html file in your web browser. Refresh the webpage to play the game and see the result.

Future Improvements

Implement a scoring system to keep track of multiple rounds. Add animations for a more engaging user experience. Include a multiplayer mode to allow multiple players to participate simultaneously. Contributions Contributions are welcome! If you have any ideas for improvements or new features, feel free to open an issue or submit a pull request.

Screenshot (387) Screenshot (386)