The Pig Game is a simple dice game where players take turns rolling a dice and accumulate points based on the outcome of the roll. The objective is to be the first player to reach a certain score, typically 100. However, if a player rolls a 1, they lose all the points accumulated in that turn, and the turn passes to the next player. This project implements the Pig game using HTML, CSS, and JavaScript, providing an interactive web-based interface for players to enjoy the game.
Each player takes turns rolling a six-sided dice. If a player rolls a 1, their current score is reset to 0, and it becomes the next player's turn. Players can choose to "Hold" their current score, adding it to their total score, and passing the turn to the next player. The first player to reach or exceed a predefined winning score wins the game.
Interactive Interface: The game provides an intuitive interface for players to roll the dice, hold their score, and view their total score. Two Player Mode: Players can compete against each other in a two-player mode. Single Player Mode: Players can play against a computer opponent. Adjustable Winning Score: The winning score can be customized to increase or decrease the challenge. Responsive Design: The game interface adapts to different screen sizes, making it accessible across various devices. Usage
![image](https://private-user-images.githubusercontent.com/56509182/324216872-7d72f75c-6833-42a1-9856-177d9572a40b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzNzI0MDgsIm5iZiI6MTcyMzM3MjEwOCwicGF0aCI6Ii81NjUwOTE4Mi8zMjQyMTY4NzItN2Q3MmY3NWMtNjgzMy00MmExLTk4NTYtMTc3ZDk1NzJhNDBiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODExVDEwMjgyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIyYjhlMzVmNWM1MDJkYzVlMzUyODdmZjE2ZmEzY2M5MzkzYzRlY2JmMzRhMTY3ZmM5N2QxNWZmYTIwNDRkNmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jYPj4ZyNmXUNB9XZuRrlrtQ7E7KJSECS0aaqU5gkVIk)