← games

FAQ / rules

This page describes exactly what the current code does. Inco keeps private data hidden, but it does not change the game rules.

Two players receive one card each. The higher card takes the pot.

  1. 01Each player joins with exactly one bet. The first player opens a table; the second takes the open seat.
  2. 02After the second player joins, a 52-card deck is shuffled and one private card is dealt to each player.
  3. 03Each player can see only their own card. On showdown, both cards become public.
  4. 04Only rank matters: 2 is below 3, ... , K is below A. Suit does not affect the result.
  5. 05The winner receives the pot: both bets minus the current Inco shuffle fee. Equal ranks split the pot; an odd smallest unit goes to player B.
  6. 06After settlement, the winner withdraws the credited payout with Claim. New game opens a fresh table.

Blackjack

open game

Build a hand closer to 21 than the dealer without going over.

  1. 01Place a positive bet. You receive two face-up cards; the dealer shows one upcard and keeps the remaining cards hidden.
  2. 02Hit gives you one more face-up card. The UI disables Hit after a bust; the contract allows at most 11 player cards.
  3. 03Stand ends your turn. The dealer's hidden cards are then revealed, and the dealer draws until the first total of 17 or more. Soft 17 counts as a stand.
  4. 04An Ace counts as 11, then demotes to 1 while the hand would otherwise bust. J, Q and K count as 10.
  5. 05A player bust loses. If the dealer busts or your total is higher, you receive 2× your bet including the original bet. A tie returns 1× your bet. Otherwise the dealer wins.
  6. 06A natural blackjack has no separate bonus: it is treated as an ordinary 21. Claim a positive payout before dealing the next hand.

Raffle

open game

Each entry receives a number, then one number is selected by a hidden shuffle.

  1. 01Each entry must pay exactly ticketPrice and receives the next number: the first ticket is #1, the second is #2, and so on.
  2. 02The same address may enter more than once; each entry creates a separate ticket.
  3. 03Draw is available only after minEntrants tickets (at least 2). The caller supplies the current Inco shuffle fee.
  4. 04The hidden draw selects a number from 1 to the number of tickets. The winning number becomes public after reveal.
  5. 05The owner of the selected ticket receives the full prize: ticketPrice × number of tickets.
  6. 06After settlement, anyone can open New raffle. Tickets from the previous round do not carry over.

Each player receives a private role. mafiaCount determines how many players are Mafia.

  1. 01Players join one address at a time. An address cannot join twice in the same round.
  2. 02Starting requires more players than mafiaCount. Roles are not dealt before that threshold is reached.
  3. 03After the shuffle, each player receives one value from 1 to the player count. Values 1..mafiaCount mean Mafia; the rest mean Town.
  4. 04Only the role owner can decrypt their role. Discussion, accusations and voting happen off-chain in this version.
  5. 05After roles are dealt, anyone can open New game. The old seats are cleared and a new round starts.

Secret Syndicate

open game

A Megapot ticket reference unlocks a private role: one Insider versus the Syndicate.

  1. 01In the current MVP, each player enters a positive Megapot ticket ID as a ticket reference. The Base Sepolia contract stores the reference but does not verify ticket ownership.
  2. 02A round accepts 2 to 8 players, with each address allowed once. Roles can be dealt once the players are ready or the room is full.
  3. 03The shuffle creates values from 1 to the player count. Value 1 means THE INSIDER; every other value means SYNDICATE.
  4. 04Each player decrypts only their own role. Other players' roles remain private.
  5. 05After roles are dealt, anyone can open a new round. The current MVP does not define a winner, score or prize pool.
  6. 06Buying a Megapot ticket is a separate explicit action and is not an automatic requirement for the on-chain join.