Skip to content

Welcome to Pig Game! πŸŽ‰ This project showcases a classic dice game where players take turns rolling dice to accumulate points and aim to be the first to reach 100 points. πŸš€

Notifications You must be signed in to change notification settings

naijadevgamer/pig-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎲 Pig Game

Welcome to Pig Game! πŸŽ‰ This project showcases a classic dice game where players take turns rolling dice to accumulate points and aim to be the first to reach 100 points. πŸš€

πŸ“š Features

  • Dice Rolling: Players can roll a dice to add points to their current score, with the dice result displayed on the screen. 🎲
  • Hold Score: Players can choose to hold their current score, which adds it to their total score and switches to the next player. πŸ…
  • Winning Condition: The game ends when a player reaches or exceeds 100 points, and they are declared the winner. πŸ†
  • New Game: Start a new game with a reset of scores and active player indicators. πŸ”„
  • Player Switching: Automatically switch players if a dice roll results in a 1 or after holding the score. πŸ”„

🎨 Technologies Used

  • JavaScript: For game logic, event handling, and game state management. πŸ–₯️
  • HTML/CSS: For building and styling the game interface. 🎨

πŸ’‘ Acknowledgments

A special thanks to Jonas Schmedtmann for the excellent course that provided this project. πŸ™

Enjoy the game! πŸ˜ƒ

About

Welcome to Pig Game! πŸŽ‰ This project showcases a classic dice game where players take turns rolling dice to accumulate points and aim to be the first to reach 100 points. πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published