Skip to content

"Pig Game: A simple two-player dice game implemented with HTML, CSS, and JavaScript. Roll the dice, accumulate points, and compete to reach the winning score first."

Notifications You must be signed in to change notification settings

ABurkas/Pig_Game

Repository files navigation

Pig Game🐷

Project description

1

The Pig Game is a simple web-based game that demonstrates basic HTML, CSS, and JavaScript skills. This project showcases a two-player game where players take turns rolling a dice to accumulate points. The goal is to be the first player to reach a score of 100 or a designated winning score.

Features

  • Two-player game with alternating turns.
  • Rolling a dice to accumulate points in the current round.
  • "Hold" option to add the current round's points to the total score.
  • Winning condition to reach a score of 100 or a custom winning score.
  • Responsive design for different screen sizes.

Technologies Used

  • HTML for structuring the game's content.
  • CSS for styling and creating an attractive interface.
  • JavaScript for implementing game logic and interactivity.
  • Google Fonts for using the Nunito font in the project.

How To Play

  1. Click "Roll dice" to roll the dice. Your current score will increase with each roll unless you roll a 1.
  2. Click "Hold" to add your current score to your total score. It's now the other player's turn.
  3. The game continues until one player reaches a score of 100 (or the winning score, if customized).

Contributions
Contributions are welcome! Feel free to submit bug fixes or enhancements to make the game even more enjoyable.

Licence
This project is open-source and available under the MIT License.

Getting Started
To run the game locally, download the project files and open the index.html file in your web browser. You can also try it out live by following the project link.

About

"Pig Game: A simple two-player dice game implemented with HTML, CSS, and JavaScript. Roll the dice, accumulate points, and compete to reach the winning score first."

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published