From 6e6aca91f62669e1525a31b6ea34a3682ddf664f Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Sun, 4 Feb 2024 09:59:45 -0600 Subject: [PATCH] indicate the player's role Fixes #15. --- site/src/components/Game.vue | 2 +- site/src/components/GameStatus.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/site/src/components/Game.vue b/site/src/components/Game.vue index 2ef74f7..af4ba2c 100644 --- a/site/src/components/Game.vue +++ b/site/src/components/Game.vue @@ -5,7 +5,7 @@ - + diff --git a/site/src/components/GameStatus.vue b/site/src/components/GameStatus.vue index 7c56fbb..9c9e09f 100644 --- a/site/src/components/GameStatus.vue +++ b/site/src/components/GameStatus.vue @@ -25,6 +25,7 @@ import type { Game } from '@/lib/game'; export interface Props { game: Game; + dealer: boolean; } const props = defineProps(); @@ -36,7 +37,7 @@ const roundChips = computed(() => [ ] as const); const actionMessages: Record string> = { - Start: () => "THE MATCH BEGINS", + Start: () => props.dealer ? "YOU ARE THE DEALER" : "YOU ARE THE CHALLENGER", Shoot: (game) => game.previous ? "THE PAIN..." : "A BLANK CLATTERS ON THE TABLE", GameEnd: () => "THE DEALER RELOADS THE SHOTGUN", BeerGameEnd: () => "THE LAST SHELL CLATTERS ON THE TABLE",