mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-23 00:21:38 +03:00
25 lines
456 B
Plaintext
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,
|
|
}
|
|
}
|