This is a fun and engaging 2-player dice game website built using HTML, CSS, and JavaScript. Players take turns rolling dice, aiming to achieve the highest score or specific winning conditions you define.
- 2-player gameplay: Supports simultaneous play for two players.
- Interactive dice rolling: Players can click on virtual dice to roll them, adding an engaging element.
- Scorekeeping: Tracks individual player scores and displays them in a clear and user-friendly manner.
- Winning conditions: You can customize the rules to determine winning criteria (e.g., highest score after a set number of rounds, reaching a specific target score).
- Visually appealing design: The website utilizes CSS to create an attractive and intuitive interface that enhances the user experience.
-
Clone the repository:
git clone https://github.com/[your-username]/[your-repo-name].git -
Open the HTML file:
- Navigate to the project directory using your terminal.
- Open the main HTML file (e.g., index.html) in a web browser.
- Start the game: Players can begin playing immediately upon opening the website in their browsers.
- Roll the dice: Each player clicks on the designated dice element to roll.
- View scores: The website updates and displays individual player scores after each roll.
- Determine the winner: The winning conditions you define (e.g., highest score after a set number of rounds) will determine the victor.
- Rules and scoring: Modify the JavaScript code to implement your desired winning conditions and scoring logic.
- Design: Customize the CSS styles to personalize the website's appearance.
- Sound effects: Optionally, add sound effects for dice rolls and other game events using JavaScript libraries.