nectar/kinode/packages/chess/api/chess:sys-api-v0.wit
hosted-fornet cbf4baba37 move apis
2024-05-07 17:06:57 -07:00

25 lines
456 B
Plaintext

interface chess-sys-api-v0 {
variant chess-request {
new-game(new-game-request),
move(move-request),
resign(string),
}
variant chess-response {
new-game-accepted,
new-game-rejected,
move-accepted,
move-rejected,
}
record new-game-request {
white: string,
black: string,
}
record move-request {
game-id: string,
move-str: string,
}
}