nectar/kinode/packages/chess/api/chess:sys-api-v0.wit

25 lines
456 B
Plaintext
Raw Normal View History

2024-05-07 02:48:23 +03:00
interface chess-sys-api-v0 {
2024-05-06 21:12:08 +03:00
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,
}
}