Skip to content

Commit

Permalink
add rules
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-w committed May 15, 2024
1 parent 3ee6bd8 commit 6312c9c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
# the-game

React implementation of the card game 'The Game' (single player).

[**🚀 Play here 🚀**](https://leon-w.github.io/the-game/)

React implementation of the card game 'The Game' (single player).

<div align="center">
<img width="50%" src="./img/mobile_example.png">
<img width="25%" src="./img/mobile_example.png">
</div>

## Rules

TODO
The goal of 'The Game' is to play all 98 cards (with the numbers 1 to 98 on them) into four piles, two ascending and two descending, from 1 to 100 and back again.

**Setup:** The 98 cards are shuffled. You start with 8 hand cards. The remain hidden in a draw pile.

**Gameplay:** On your turn, you must play at least two cards from your hand onto any of the four piles on the table. You can play more than two cards if you wish, but you must play at least two. The turn ends with you drawing back up to 8 cards.

_Card Placement Rules:_

- Ascending piles: Cards must be played in ascending order, from 1 to 100.
- Descending piles: Cards must be played in descending order, from 100 to 1.
- If the difference between the card you play and the top card of the pile is exactly 10, you can play the card on the pile.

**Winning:** The game ends when you can no longer legally play any cards from your hand onto the piles. Your goal is to play all 98 cards. The remaining cards (if any) can be seen as a score of how well you did.
2 changes: 2 additions & 0 deletions src/components/Bar/Bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export function BarBottom() {
return (
<div className="bar barBottom">
<a href="https://github.com/leon-w/the-game">Github</a>
&nbsp;&bull;&nbsp;
<a href="https://github.com/leon-w/the-game?tab=readme-ov-file#rules">How to Play</a>
</div>
);
}

0 comments on commit 6312c9c

Please sign in to comment.