Court Piece — Rang or Rung in Urdu — is a partnership trick-taking game of the Hokm/Whist type played all over Pakistan. The trump suit is chosen after seeing only part of your hand, which makes the opening bid a real gamble.
Variant implemented
Court Piece / Rang "first-four" variant: 4 players in fixed partnerships, 52 cards, trump chosen by the dealer’s partner-side leader from their first five cards, must follow suit, 7 tricks wins the hand.
Board and pieces
A standard 52-card pack. Four players in fixed partnerships: seats 1 & 3 against seats 2 & 4.
Setup
Five cards are dealt to each player. The trump maker names the trump suit from those five alone. The remaining eight cards are then dealt to each player.
Turn
The trump maker leads. Play proceeds clockwise; each player plays one card.
Capture and scoring
The highest trump wins the trick; if no trump was played, the highest card of the suit led wins. The winner leads the next trick.
Win condition
The first partnership to take seven of the thirteen tricks wins the hand.
Draw condition
Impossible — thirteen tricks cannot split evenly.
Special rules
You must follow the suit led if you can. If you cannot, you may play anything, including a trump. Naming the trump on five cards rather than thirteen is what makes the opening a genuine gamble.
Computer opponent
Heuristic play: win as cheaply as possible when you can take the trick; throw the lowest card when your partner already has it; lead your strongest suit. A determinized search over hidden hands is not implemented — the AI reasons only from what it can legitimately see.