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?
๐ Play the Game
- ๐ฎ 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.
-
Clone the Repository
- Open your terminal or command prompt.
- Clone the repository using:
git clone https://github.com/SandunLB/PIG-DICE-JS.git
-
Navigate to the Project Directory
- Change your directory to the project folder:
cd PIG-DICE-JS
- Change your directory to the project folder:
-
Open
index.html
in Your Browser- Open the
index.html
file in your preferred web browser to start playing.
- Open the
-
Optional Customization
- Edit the
styles.css
file to customize the game's appearance.
- Edit the
- Single-Player: Compete against an AI with adjustable difficulty.
- Multiplayer: Play against another human player.
- ๐ฒ 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.
- 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.
This project is licensed under the MIT License - see the LICENSE file for details.
Thank you for checking out the Pig Dice Game! ๐ Have fun rolling the dice! ๐ฒ