Skip to content

A real-time, two-player on-chain board game utilizing zero-knowledge proofs.

License

Notifications You must be signed in to change notification settings

johnson86tw/token-heist

Repository files navigation

Token Heist

Demo

demo-thief demo-police

demo-video.mp4

Game Rules

  • Two players compete on a 3x3 board, one as the police and the other as the thief. They take turns to move, with the thief starting first.
  • The police have five cops to deploy, whose positions are public and fixed. Their objective is to position them where they think the thief might be.
  • After the police deployment, they can learn if the thief is adjacent. Then it's the thief's turn to move.
  • The thief can move secretly or stay put but cannot move to a cell occupied by a cop. If the thief wins, they gain points equal to the sum of the number of cells in their path.
  • If a cop is placed on the cell occupied by the thief, the game ends, and the police win.
  • If all five cops are deployed without catching the thief, the game ends, and the thief wins.

Circuit Scheme

Circuit Scheme

Flow and Process

Flow

Process

Credits

Support 🙏

  • 0x72B277a3FEe8DA1A9bfb1B3bbfA071f4a524EC63