Pig Game
The Pig Game is a simple and fun dice game created using HTML, CSS, and JavaScript. The objective of the game is to be the first player to reach 100 points before the opponent does. Players can choose to continue rolling the dice or secure their points.
Features
- Loader : A loading animation is displayed while the game is initializing, enhancing the user experience.
- Start Page: The application begins with an page, where you can read the rules or start the game.
- Player Interaction: Players can take turns rolling the dice and accumulating points. The game offers a simple and user-friendly interface.
- Scoring System: Players have the option to secure their points or continue rolling, with the risk of losing all points accumulated in that round.
- Rules Button: A button on the user interface that displays the game rules. This helps new players quickly understand the game mechanics.
- Button to switch to dark mode
- Roll dice with Space-Key or Hold with Enter-Key
Technologies
- HTML: Used for structuring the application and creating the user interface.
- CSS: Used for styling the application to ensure an appealing user interface.
- JavaScript: Handles the logic and interactivity of the game, including the dice functionality and point calculations.
Installation
- Clone the repository or download the ZIP file.
- Open the
index.htmlfile in a web browser to start the game.
Game Instructions
- Click the "Start" button on the homepage to begin the game.
- Roll the dice and decide whether to secure your points or roll again.
- Be the first to reach 100 points to win!