A clone of the two player card game Jaipur, with local multiplayer and AI opponent modes. Made to learn the Rust game engine Bevy. (v0.8.0).

Source code and notes on AI implementation: https://github.com/dmackdev/bevy_jaipur

How to play:

The game follows the rules of Jaipur exactly - see https://www.fgbradleys.com/rules/rules2/Jaipur-rules.pdf for a full explanation. The objective of the game is to acquire the highest number of "Rupees", designated by the values of the game tokens. A game token is awarded for each good sold from your hand during a turn.

On your turn, select a "move mode" from the RHS buttons - either "Take" or "Sell".

Click on the cards that you wish to use for executing your move. Selected cards appear with a yellow outline. Click a selected card again to deselect it.

Take:

  • Take single good: select a single good from the market. Valid when you have less than 7 goods in your hand.
  • Exchange goods: select 2 or more goods from the market, and an equal number of: goods and camels from your hand. Valid when the exchange would not cause you to exceed 7 goods in your hand.
  • Take all camels: select all camels from the market.

Sell:

  • Select 1 or more goods, all of the same type, from your hand. For high value goods - diamond, silver, gold - must have at least 2 as part of the sale. Players additionally acquire a corresponding "Bonus Token" for sales of 3 goods or more.

When cards are selected such that the move is valid, the "Confirm" button will turn green. Press it to execute your move, and play passes to the other player.

(Note there is no automatic clearing of selected cards during a turn when changing the "move mode" - you may have leftover selected cards which would cause an invalid move.)

As per the rules, the game ends after a turn when either: the game tokens for 3 types of goods are depleted, or the market cannot be fully refilled from the deck. The player with the highest number of camels at the end of the game is awarded a 5 Rupee bonus. The player with the highest number of Rupees wins.

Note that as per the rules - a player need not reveal the number of camels they have, so the AI player does not show you all of theirs.

Updated 19 days ago
StatusReleased
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
Authordmackdev
GenreCard Game
Tags2D, artificial-intelligence, bevy, Multiplayer, Short, Turn-based, Two Player
Average sessionA few minutes
MultiplayerLocal multiplayer
Player count1 - 2

Leave a comment

Log in with itch.io to leave a comment.