DECLARE 2027 · Draft rules

Rules

Part I is Canadian Fish, the card game. Part II is how DECLARE runs: who can enter, what your bot may do, and how it is scored.

Proposed marks a rule that isn't final yet.

Part I: Canadian Fish

The standard six-player game, with declarations at any time.

1.Players and seats

  1. 1.1Six players play in two teams of three.
  2. 1.2Teams sit alternately, so every player has an opponent on each side. Team A holds seats S1, S3 and S5. Team B holds seats S2, S4 and S6.
  3. 1.3Nobody may show their cards or say what they hold. Everything a player learns about other hands comes from the asks, answers and declarations that the whole table sees.

2.The deck

  1. 2.1Fish uses 54 cards: a standard 52-card deck plus two jokers.
  2. 2.2The cards form nine half-suits of six cards each. Every suit splits into a low half (2 to 7) and a high half (9 to ace). The four eights and the two jokers make the ninth half-suit.
  3. 2.3Each player is dealt nine cards.
  4. 2.4The first asker is drawn at random with each deal.Proposed
Low spades2♠3♠4♠5♠6♠7♠
High spades9♠10♠J♠Q♠K♠A♠
Low hearts2♥3♥4♥5♥6♥7♥
High hearts9♥10♥J♥Q♥K♥A♥
Low diamonds2♦3♦4♦5♦6♦7♦
High diamonds9♦10♦J♦Q♦K♦A♦
Low clubs2♣3♣4♣5♣6♣7♣
High clubs9♣10♣J♣Q♣K♣A♣
Eights and jokers8♠8♥8♦8♣jokerjoker

★ is a joker.

3.Asking

  1. 3.1On your turn, ask one opponent for one exact card, such as the 9♥.
  2. 3.2You may ask only an opponent, never a teammate, and only one who still holds cards.
  3. 3.3You must already hold at least one card of that card's half-suit, and you may not hold the card itself.
  4. 3.4If they hold it, they give it to you and you ask again. There is no limit on how many times in a row you can ask.
  5. 3.5If they don't hold it, they say no and the turn passes to them.
  6. 3.6Every ask and every answer is public. The whole table hears who asked whom, for which card, and what the answer was.
  7. 3.7If you hold all six cards of every half-suit you hold any of, you have no legal ask, so you must declare on your turn.

S1 (team A) holds

9♥10♥2♠5♠K♣
  • ✓S1 asks S4 for J♥S1 holds high hearts, but not the J♥
  • ✓S1 asks S6 for 3♠S1 holds low spades, but not the 3♠
  • ✗S1 asks S4 for 10♥S1 already holds it
  • ✗S1 asks S2 for 3♦S1 holds no low diamonds
  • ✗S1 asks S3 for J♥S3 is S1's teammate
Which asks S1 may make with this hand.

4.Declaring

  1. 4.1At any moment, even during another player's turn, a player may declare a half-suit by saying which player on their own team holds each of its six cards.
  2. 4.2A declaration names a holder for all six cards. You can't declare part of a half-suit.
  3. 4.3If every card is where the declarer said, their team scores the half-suit. If any card is wrong, including one that sits with the other team, the other team scores it.
  4. 4.4Either way, the six cards and who held them are shown to the whole table. The half-suit then leaves play and can't be asked for again.
  5. 4.5A declaration doesn't change whose turn it is. Play carries on from the player who was about to move.
A turn, played outA: S1 S3 S5 · B: S2 S4 S6
  1. S1 asks S4 for 9♥Yes · S1 takes it and asks again
  2. S1 asks S2 for J♥No · the turn passes to S2
  3. S2 asks S5 for 4♣Yes · S2 takes it and asks again
  4. S6 declares low clubs, during S2's turnCorrect · team B scores low clubs 2♣ 3♣ 4♣ S2  ·  5♣ 6♣ S6  ·  7♣ S4
  5. The six clubs are shown and leave playIt is still S2's turn
Example: three asks and a declaration made out of turn.

5.Running out of cards

  1. 5.1A player with no cards can't ask and can't be asked, but may still declare.
  2. 5.2If the turn reaches a player with no cards, they choose a teammate who still has cards and pass the turn to them.
  3. 5.3If none of their teammates has cards either, their whole team is out. Asking stops, and the other team must declare every half-suit still in play.

6.End of the game

  1. 6.1The game ends when all nine half-suits have been declared.
  2. 6.2The team that scored five or more half-suits wins. Nine can't split evenly, so there are no ties.

A finished game: who scored each half-suit

low spades: team Ahigh spades: team Blow hearts: team Bhigh hearts: team Alow diamonds: team Ahigh diamonds: team Blow clubs: team Bhigh clubs: team Aeights and jokers: team A
Team A · 5 half-suits · winsTeam B · 4 half-suits
All nine half-suits declared. Team A scored five, so team A wins.

Part II: DECLARE

One day, in person. Teams build a bot that plays Part I against every other team's bot.

7.Who can enter

  1. 7.1DECLARE is open to university students: undergraduate, master's or PhD.
  2. 7.2Every team member registers with their university email address, and student status is checked at check-in. Everyone applies on their own; on the application you can name up to two teammates, and we invite them to apply too.
  3. 7.3A team is one, two or three people. DECLARE happens in one day, in person.

8.Your bot

  1. 8.1Each team builds one bot in Python. That bot plays all three of its team's seats.
  2. 8.2Each seat runs as its own isolated process, with no shared memory, disk or network, and its memory resets at the start of every game. The only way one seat can tell another anything is a legal move at the table.
  3. 8.3Each seat sees its own private names for the cards and the seats, so seats can't pass a secret code through names.
  4. 8.4Each team gets about 5 seconds of thinking time per game, split into a separate bank of about 1.7 seconds for each seat. Seats can't share time, because a shared balance could be used to signal. Time is measured as CPU time.
  5. 8.5No single decision may take more than about 250 milliseconds.Proposed
  6. 8.6A decision that takes too long, raises an error or returns an illegal move is replaced by a default move, and the game goes on. A seat that uses up its bank plays default moves for the rest of the game.
  7. 8.7Bots can't see the real clock, so timing can't be used to signal between seats.Proposed
  8. 8.8Bots are plain Python, with numpy, numba, scipy and CPU-only torch installed. No other libraries, no compiled code and no network access.
  9. 8.9Each upload is checked against the house bots and becomes your active bot if it passes.
  10. 8.10You can upload a new version as often as once every 30 seconds.Proposed
  11. 8.11Any AI coding tools are allowed.
Your bot
S1Own process
Sees the 9♥ as #31
S3Own process
Sees the 9♥ as #07
S5Own process
Sees the 9♥ as #45
The same code runs in all three seats, each in its own process with its own names for the cards. The names shown are only an example.

9.Rounds

  1. 9.1Practice rounds run from the start of the build at 10:30 until 12:50, and don't count.Proposed
  2. 9.2Six scored rounds run from 13:45 to 17:30.Proposed
  3. 9.3The bot your team has active when a round starts plays that whole round. Uploads aren't frozen before rounds, so you can keep uploading between them, though the organizers can freeze uploads if they need to.
  4. 9.4In every round, each team plays every other team on duplicate deals: each deal is played twice, with the teams swapping seats and the same seat asking first, so the luck of the deal cancels out.
  5. 9.5A scored round is about 3,000 games for each team.
  6. 9.6Opponents are anonymous, and their IDs are reshuffled every round.
  7. 9.7After each round you get your games' logs, including the full deal of every game.

One deal, played twice

Game 1S1S2S3S4S5S6
Game 2S1S2S3S4S5S6
Both games deal the same cards to the same seats, and the same seat asks first. The bots swap sides, so each plays both halves of the deal.

10.Scoring

  1. 10.1In each game, your team earns 10 points for every half-suit it scores, plus 10 more if it wins the game. A game is worth 0 to 100 points. In the game shown in section 6, team A earns 60 points and team B earns 40.
  2. 10.2Game clock: a game ends after 200 asks if it hasn't ended sooner. Each half-suit not yet declared then goes to the team holding more of its cards, at full value. A half-suit split 3–3 goes to the team holding its lowest card: the 2 or the 9 of its suit, or the 8♠ for the eights and jokers. Every half-suit goes to someone, so one team always reaches five and wins.Proposed
  3. 10.3Your score for a round is your average points per game. A team with no active bot when a scored round starts scores 0 for that round.
  4. 10.4Your final score is the weighted average of your six scored rounds, with weights 2, 2, 3, 3, 4 and 5, so later rounds count for more.
  5. 10.5The results of round 6 are held back and revealed at the awards, with the final standings.
RoundWeightShare of final score
Round 1210.5%
Round 2210.5%
Round 3315.8%
Round 4315.8%
Round 5421.1%
Round 6526.3%
The six weights add up to 19, so round 6 alone is about a quarter of your final score.

11.Fair playProposed

  1. 11.1One team per person.
  2. 11.2No collusion, soft play, deliberate losing or multiple entries.
  3. 11.3The organizers may void games, re-score rounds or disqualify a team that breaks these rules.
  4. 11.4The bots of prize-winning teams are reviewed before the awards.

12.The twist

  1. 12.1Part I is standard Canadian Fish. The twist's rules arrive at 10:30 on the day, when the build begins, and everyone hears them at the same moment.

13.Still to come

  1. 13.1The full eligibility rules and the code of conduct are published before the event, with the final version of these rules.

Draft.These rules can still change before the event. If the final version differs from this page, the final version applies.