Welcome to the Pig Game repository! This is a simple and fun dice game that you can play in your browser. The game is built using HTML, CSS, and JavaScript, and it's fully responsive, allowing you to enjoy it on various devices.
The Pig Game is a two-player dice game where the players take turns to roll a dice. The main objective of the game is to reach a specific winning score before your opponent does. Here are the basic rules:
- Each player can roll the dice as many times as they want during their turn. The numbers rolled on the dice are added to the player's current score.
- However, if a player rolls a 1, their current score is reset to 0, and it becomes the other player's turn.
- Players have the option to "Hold," which means they add their current score to their total score. After holding, it becomes the other player's turn.
- The first player to reach the specified winning score (e.g., 100 points) wins the game.
-
Use this Netlify link to play in your browser: https://main--quiet-cheesecake-dbb0cf.netlify.app/
-
Follow the on-screen instructions to take turns rolling the dice and deciding whether to hold or continue rolling.
-
Enjoy the game and have fun!
- Responsive design: The game is designed to work well on various screen sizes, including desktops, tablets, and mobile devices.
- Fully functional: The game follows the classic Pig Game rules and provides an interactive interface for an enjoyable gaming experience.
- Randomized dice: The dice rolls are randomized to simulate real dice rolls.
- HTML
- CSS
- JavaScript
The Pig Game was created by Jonas Schmedtmann as a part of his Udemy course "The Complete JavaScript Course." The project was completed by me as a way to practice and demonstrate web development skills learned from the course.
This project is licensed under the MIT License.
I hope you have a great time playing the Pig Game! If you have any feedback or suggestions, feel free to open an issue or a pull request. Thanks for checking out this project!