Play Dice is a simple and fun web-based dice game where you can roll the dice and compete against an NPC. The game keeps track of the scores for the player, NPC, and the number of draws.
- Roll the dice to generate random outcomes for both the player and NPC.
- A score table to keep track of player, NPC, and draw scores.
- Simple and intuitive user interface.
- HTML: Provides the structure of the web pages.
- CSS: Styles the pages and ensures responsiveness.
- JavaScript: Implements the game logic and handles user interactions.
The home page displays an image and a button to start the game. Clicking the "Play" button takes the user to the game page.
The game page includes the game board where the player and NPC dice rolls are displayed, along with a score table that updates after each roll.
The JavaScript file contains the logic for rolling the dice, updating the scores, and displaying the dice images.
- Home Page: Visit the home page and click the "Play" button to start the game.
- Game Page: On the game page, click the "Roll!" button to roll the dice and see the outcome. The scores will update automatically based on the result.
Let users choose the roll result instead of it being randoom, Assistance would be appreciated'😁