-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
69 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,72 @@ | ||
# Pig Dice Game | ||
# Pig Dice Game ๐ฒ | ||
|
||
A simple Pig Dice game implemented in JavaScript. | ||
Welcome to the Pig Dice Game! ๐ This classic dice game brings a fun twist to your browser with engaging animations, adjustable AI difficulty, and a cosmic background. Ready to test your luck? | ||
|
||
## How to Play | ||
๐ [Play the Game](https://sandunlb.github.io/PIG-DICE-JS/) | ||
|
||
1. Roll the dice by clicking the "Roll Dice" button. | ||
2. Accumulate points or lose them if a 1 is rolled. | ||
3. Hold to save points to your total. | ||
4. First to reach Wining points wins! | ||
--- | ||
|
||
## ๐ Features | ||
|
||
- **๐ฎ Game Modes**: Play against an AI or another player. | ||
- **๐ค AI Difficulty Levels**: Customize the AIโs difficulty for a greater challenge. | ||
- **โจ Animations**: Experience smooth and captivating dice roll animations. | ||
- **๐ Sound Effects & Music**: Toggle background music and sound effects on or off. | ||
- **๐ฑ Responsive Design**: Optimized for both desktop and mobile devices. | ||
|
||
--- | ||
|
||
## ๐ Installation & Setup | ||
|
||
1. **Clone the Repository** | ||
- Open your terminal or command prompt. | ||
- Clone the repository using: | ||
```sh | ||
git clone https://github.com/SandunLB/PIG-DICE-JS.git | ||
``` | ||
|
||
2. **Navigate to the Project Directory** | ||
- Change your directory to the project folder: | ||
```sh | ||
cd PIG-DICE-JS | ||
``` | ||
|
||
3. **Open `index.html` in Your Browser** | ||
- Open the `index.html` file in your preferred web browser to start playing. | ||
|
||
4. **Optional Customization** | ||
- Edit the `styles.css` file to customize the game's appearance. | ||
--- | ||
## ๐ฎ Usage Instructions | ||
### Game Modes | ||
- **Single-Player**: Compete against an AI with adjustable difficulty. | ||
- **Multiplayer**: Play against another human player. | ||
### Controls | ||
- **๐ฒ Roll Dice**: Click the "Roll" button to roll the dice. | ||
- **โ Hold**: Click the "Hold" button to end your turn and save your score. | ||
- **๐ New Game**: Click the "New Game" button to start a fresh game. | ||
- **๐ Set Winning Score**: Enter your desired winning score in the provided input field. | ||
--- | ||
## ๐ค Development & Contribution | ||
- **Languages Used**: HTML, CSS, JavaScript | ||
- **Frameworks & Libraries**: No specific frameworks; custom code. | ||
- **Contributions**: Feel free to fork the repository, make improvements, and create a pull request. | ||
For any issues or suggestions, please open an issue on the [GitHub repository](https://github.com/SandunLB/PIG-DICE-JS). | ||
--- | ||
## ๐ License | ||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. | ||
--- | ||
Thank you for checking out the Pig Dice Game! ๐ Have fun rolling the dice! ๐ฒ |