Skip to content

Samuel2143/Dice-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice Game

This is a simple web-based dice game built using HTML, CSS, and JavaScript.

How to Play

The objective of the game is to roll the dice and determine which player has the higher number.

  1. Setup

  2. Gameplay

    • The dice will display a random number between 1 and 6 for each player.
    • If the number rolled by player 1 is greater, a message saying "Player 1 Wins!" will appear.
    • If the number rolled by player 2 is greater, a message saying "Player 2 Wins!" will appear.
    • If both players roll the same number, a message saying "Draw!" will appear.
  3. Features

    • Responsive design for various screen sizes.

Files

  • index.html: HTML structure of the game.
  • styles.css: CSS styling for the game.
  • index.js: JavaScript code for game logic.
  • images/: Contains dice images used in the game.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published