Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฒ Basic Dice Game

A simple and interactive dice game that simulates a match between two players. Each player rolls a die, and the one with the higher number wins!


๐Ÿ“Œ Features

  • ๐ŸŽฎ Two-Player Gameplay: Simulates a dice roll for each player.
  • ๐ŸŽฒ Randomized Outcomes: Utilizes random number generation to mimic real dice rolls.
  • ๐Ÿ† Instant Results: Immediately determines and displays the winner after each roll.
  • ๐Ÿงฉ Beginner-Friendly: Clean and concise code, ideal for those new to programming.

๐Ÿš€ Getting Started

Prerequisites

  • A modern web browser (e.g., Chrome, Firefox, Edge)
  • No additional installations or dependencies required

Installation

  1. Clone the Repository:

    git clone https://github.com/Rahilbhoot/BasicDiceGame.git
  2. Navigate to the Project Directory:

    cd BasicDiceGame
  3. Launch the Game:

    Open the index.html file in your preferred web browser.


๐Ÿ–ฅ๏ธ Usage

  • Upon opening the game in your browser, two dice will appear on the screen.
  • Click the "Roll Dice" button to simulate a roll for both players.
  • The game will display the result, indicating which player won or if it's a draw.

๐Ÿ› ๏ธ Technologies Used

  • HTML5: Structuring the web page.
  • CSS3: Styling and layout.
  • JavaScript: Game logic and interactivity.([docs.github.com][1], [docs.github.com][2])

๐Ÿ“‚ Project Structure

BasicDiceGame/
โ”œโ”€โ”€ index.html       # Main HTML file
โ”œโ”€โ”€ style.css        # Styling for the game
โ””โ”€โ”€ script.js        # JavaScript logic for dice rolls

๐Ÿค Contributing

Contributions are welcome! If you have suggestions or improvements, feel free to fork the repository and submit a pull request.


๐Ÿ“ฌ Contact

For any inquiries or feedback, please reach out to Rahil Bhoot.


About

This is a basic dice game which decides the winner between two dice players by generating random rolls of both dice and the max numbered dice will be the winner.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages