summaryrefslogtreecommitdiff
path: root/src/api/Chessh.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-05-29 14:48:50 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-11-21 17:57:10 -0700
commitf0ca174ada81a0ec4b1bbff9b70fcc680e4ca0ad (patch)
tree309e713bcb63918a4015c623fd778514c977e8ae /src/api/Chessh.ts
downloadchessh_bot-main.tar.gz
chessh_bot-main.zip
squash everything since there was profanity in the commit log and maybe people won't like thatHEADmain
Diffstat (limited to 'src/api/Chessh.ts')
-rw-r--r--src/api/Chessh.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/api/Chessh.ts b/src/api/Chessh.ts
new file mode 100644
index 0000000..7a35444
--- /dev/null
+++ b/src/api/Chessh.ts
@@ -0,0 +1,18 @@
+export interface BotMoveRequest {
+ bot_id: number;
+ bot_name: string;
+ game_id: number;
+ fen: string;
+ turn: string;
+ bot_turn: boolean;
+ last_move: string;
+ status: string;
+}
+
+export interface BotMoveAttempt {
+ attempted_move: string;
+}
+
+export interface BotMoveResponse {
+ message: string;
+}