Skip to content

A fun and interactive browser game featuring the classic Pig Dice game! ๐ŸŽ‰ Play against an AI ๐Ÿค– or another player ๐Ÿ‘ฅ, with adjustable AI difficulty levels for a greater challenge. Enjoy smooth dice roll animations โœจ, toggle sound effects ๐Ÿ”Š and background music ๐ŸŽถ, and experience a responsive design ๐Ÿ“ฑ for both desktop and mobile devices.

License

Notifications You must be signed in to change notification settings

SandunLB/PIG-DICE-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

32 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

About

A fun and interactive browser game featuring the classic Pig Dice game! ๐ŸŽ‰ Play against an AI ๐Ÿค– or another player ๐Ÿ‘ฅ, with adjustable AI difficulty levels for a greater challenge. Enjoy smooth dice roll animations โœจ, toggle sound effects ๐Ÿ”Š and background music ๐ŸŽถ, and experience a responsive design ๐Ÿ“ฑ for both desktop and mobile devices.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published