Skip to content

Latest commit

ย 

History

History
72 lines (48 loc) ยท 2.29 KB

README.md

File metadata and controls

72 lines (48 loc) ยท 2.29 KB

Pig Dice Game ๐ŸŽฒ

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


๐ŸŒŸ 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:
      git clone https://github.com/SandunLB/PIG-DICE-JS.git
  2. Navigate to the Project Directory

    • Change your directory to the project folder:
      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.


๐Ÿ“œ License

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! ๐ŸŽฒ