Skip to content

Commit 070c0b8

Browse files
authored
Merge pull request #745 from just-ctrlC-ctrlV/master
Dice Game
2 parents 5181493 + b70e76b commit 070c0b8

File tree

16 files changed

+336
-0
lines changed

16 files changed

+336
-0
lines changed

Dicegame/just-ctrlC-ctrlV/1.png

12.3 KB
Loading

Dicegame/just-ctrlC-ctrlV/2.png

14.3 KB
Loading

Dicegame/just-ctrlC-ctrlV/3.png

16.6 KB
Loading

Dicegame/just-ctrlC-ctrlV/4.png

15.4 KB
Loading

Dicegame/just-ctrlC-ctrlV/5.png

17.3 KB
Loading

Dicegame/just-ctrlC-ctrlV/6.png

17.7 KB
Loading
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Pig Game (JavaScript)
2+
3+
Welcome to the Pig Game! This simple web-based game allows two players to take turns rolling dice and competing for victory. It's a fun and interactive way to challenge your luck and strategy as you aim to reach the target score.
4+
5+
## Table of Contents
6+
7+
- [Getting Started](#getting-started)
8+
- [Game Rules](#game-rules)
9+
- [How to Play](#how-to-play)
10+
- [Features](#features)
11+
- [Contributing](#contributing)
12+
- [License](#license)
13+
14+
## Getting Started
15+
16+
To get started with the Pig Game, follow these simple steps:
17+
18+
1. Clone the repository or download the source code to your local machine.
19+
2. Ensure you have a modern web browser installed (e.g., Chrome, Firefox, Edge).
20+
3. Open the `index.html` file in your web browser.
21+
22+
Now you and a friend are ready to start playing the Pig Game!
23+
24+
## Game Rules
25+
26+
The rules of the Pig Game are easy to understand:
27+
28+
- Two players take turns rolling a standard six-sided die.
29+
- On a player's turn, they can roll the die as many times as they like and accumulate points with each roll.
30+
- If a player rolls a 1, they lose all the points accumulated during that turn, and their turn ends.
31+
- The player can choose to "Hold" and add their turn's points to their total score to secure them.
32+
- The first player to reach the target score (default is 100 points) wins the game.
33+
- If a
260 KB
Loading
1.15 MB
Loading

Dicegame/just-ctrlC-ctrlV/hold.png

1.6 MB
Loading

0 commit comments

Comments
 (0)