Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pig Game

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.

Game Rules

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:

  1. 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.
  2. However, if a player rolls a 1, their current score is reset to 0, and it becomes the other player's turn.
  3. 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.
  4. The first player to reach the specified winning score (e.g., 100 points) wins the game.

How to Play

  1. Use this Netlify link to play in your browser: https://main--quiet-cheesecake-dbb0cf.netlify.app/

  2. Follow the on-screen instructions to take turns rolling the dice and deciding whether to hold or continue rolling.

  3. Enjoy the game and have fun!

Features

  • 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.

Technologies Used

  • HTML
  • CSS
  • JavaScript

Acknowledgments

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.

License

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages