https://github.com/anashany2193/pig-game-project
https://github.com/anashany2193/pig-game-project
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/anashany2193/pig-game-project
- Owner: AnasHany2193
- Created: 2024-04-04T21:45:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-06T01:37:25.000Z (over 2 years ago)
- Last Synced: 2025-02-05T15:46:44.026Z (over 1 year ago)
- Language: JavaScript
- Size: 387 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pig Game 🎲
A fun dice rolling game where players race to reach 100 points first!
## Introduction
Pig Game is a simple and entertaining game built with HTML, CSS, and JavaScript. It's inspired by classic dice games and offers a quick way to have fun with friends or challenge yourself against the computer.
## How to Play
1. Open the [Pig Game](https://pig-game-2193.netlify.app/) in your web browser.
2. Each player starts with a score of 0.
3. Click the "Roll dice" button to roll the dice.
4. If you roll a 1, you lose your current score and it becomes the next player's turn.
5. If you roll any other number, it gets added to your current score.
6. You can click "Hold" to keep your current score and end your turn.
7. The first player to reach 100 points wins the game!
## Features
- Two players can take turns rolling the dice.
- The game keeps track of each player's score and current score.
- Responsive design for various screen sizes.
## Technologies Used
- HTML5
- CSS3
- JavaScript
## File Structure
- `index.html`: Contains the structure of the game interface.
- `style.css`: Defines the styling rules for the game elements.
- `script.js`: Implements the game logic, including dice rolling and score tracking.
## Author
Anas Hany 🧑💻
- LinkedIn: [Anas Hany](https://www.linkedin.com/in/anashany219/)
- GitHub: [AnasHany2193](https://github.com/AnasHany2193)
## Demo
You can play the game [here](https://pig-game-2193.netlify.app/)! 🎮
Feel free to reach out if you have any questions or feedback! 📧