An implementation of the card game, Mantis, created by Exploding Kittens.
- Install and set up Poetry.
- Clone this repo.
- From the repo's root, run
poetry install
. - See the game's README for instructions on how to play!
Win the game by:
- Scoring 10 points before any of your opponents
- Having the most points when the deck runs out of cards
- If two players tie, then break ties by number of cards in player
tank
s.- If two players have an equal number of cards in their tank, they both win :)
- If two players tie, then break ties by number of cards in player
- A deck of 105 unique cards
- Cards are made up of two parts
- A colored face
- A tri-colored back
- There are 7 card colors:
${\textsf{\color{red}Red\color{white}, \color{green}Green\color{white}, \color{Blue}Blue\color{white}, \color{purple}Purple\color{white}, \color{pink}Pink\color{white}, \color{yellow}Yellow\color{white}, and \color{orange}Orange}}$
- There are 15 of each color in the deck
- There are
${7 \choose 3} = 35$ ways to choose 3 colors from 7 - The deck is made by
- Creating a card for each color in each combination
- The colored face is the
i
th color in the combination - The tri-colored back is the combination itself
- The colored face is the
- Creating a card for each color in each combination
- The game is designed for 2-6 players
- 4 cards are dealt face up to each player and placed in their
tank
- A random player is selected to go first
- Each turn, a player can either
score
orsteal
after inspecting the tri-colored back of the deck's top card - After
scoring
orstealing
, the turn is passed to the next player
- The player draws the deck's top card and looks at the face
- If the card matches a color in their
tank
, the player removes all matching cards in theirtank
andscores
1 point for each matching card - If the card does not match a color in their
tank
, the player places the card face up in theirtank
- If the card matches a color in their
- The player selects a player (that is not them) to steal from
- The player draws the deck's top card and looks at the face
- If the card matches a color in the stealee's
tank
, the player moves all matching cards from the stealee'stank
into theirtank
- The player does not
score
these cards
- If the card matches a color in the stealee's
- The game goes until 15 points instead of 10
- Successfully
stealing
causes you to take another turn