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: Tic-tac-toe โ
Template link: https://legacy.smartpy.io/ide?template=state_channel_games/models/tictactoe.py
Description โ
Tic-tac-toe is a simple game (see rules on wikipedia:tic-tac-toe.
It is run on a 3 by 3 grid.
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 |