From 72304fab0b4855021c856435255e9f4a7bc1e726 Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Tue, 30 Jan 2024 21:31:16 -0600 Subject: [PATCH] add game controls --- site/src/components/Game.vue | 28 ++++++++++++++++++++++++++++ site/src/lib/game.ts | 7 +++++++ 2 files changed, 35 insertions(+) diff --git a/site/src/components/Game.vue b/site/src/components/Game.vue index 1e46f63..c3beb43 100644 --- a/site/src/components/Game.vue +++ b/site/src/components/Game.vue @@ -18,6 +18,21 @@ + + + + SHOOT {{ dealerTarget }} + + + SHOOT {{ challTarget }} + + + + + + THE {{ currentTurn }} IS CONSIDERING + + @@ -25,11 +40,24 @@ \ No newline at end of file diff --git a/site/src/lib/game.ts b/site/src/lib/game.ts index aaaf074..02dc00e 100644 --- a/site/src/lib/game.ts +++ b/site/src/lib/game.ts @@ -61,3 +61,10 @@ export interface GameStart { */ dealer: boolean; } + +/** + * Commands sent to the server. + */ +export interface Action { + action: "quit" | "across" | "self" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7"; +}