Skip to content

Prashely/Dice-Roller-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play Dice Game

Overview

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.

Features

  • 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.

Technologies Used

  • HTML: Provides the structure of the web pages.
  • CSS: Styles the pages and ensures responsiveness.
  • JavaScript: Implements the game logic and handles user interactions.

Structure

Home Page (home.html)

The home page displays an image and a button to start the game. Clicking the "Play" button takes the user to the game page.

Game Page (game.html)

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.

JavaScript (game.js)

The JavaScript file contains the logic for rolling the dice, updating the scores, and displaying the dice images.

Usage

  1. Home Page: Visit the home page and click the "Play" button to start the game.
  2. 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.

Future Features:

Let users choose the roll result instead of it being randoom, Assistance would be appreciated'😁

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published