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.
Outcomes โ
Name | Description |
---|---|
player_1_won | Player 1 won the game |
player_2_won | Player 2 won the game |
draw | The game ended without winner |