Skip to content
On this page

import Entrypoint from '@site/src/components/MichelsonDoc/Entrypoint'; import Michelson from '@site/src/components/MichelsonDoc/Michelson'; import MichelsonArg from '@site/src/components/MichelsonDoc/MichelsonArg'; import MichelsonArgs from '@site/src/components/MichelsonDoc/MichelsonArgs';

Model: Chess โ€‹

Template link: https://legacy.smartpy.io/ide?template=state_channel_games/models/chess.py

Description โ€‹

Complete chess game model with all standard rules: castle, enPassant, 3 times repeat claiming, 50 half moves clock.

Stalemate works as follows: the player who has to play claims a stalemate, the other must answer by a valid move or accept the stalemate.

Chess pieces

Outcomes โ€‹

NameDescription
player_1_wonPlayer 1 won the game
player_2_wonPlayer 2 won the game
drawThe game ended without winner

Initial inputs โ€‹

Move Data โ€‹

Game state โ€‹