| @@ -5,7 +5,7 @@ | ||||
|                 <v-progress-linear v-if="!gameOver" :model-value="timeLeft" :max="initTimeLeft" :color="moveColor"></v-progress-linear> | ||||
|                 <v-row class="d-flex justify-center"> | ||||
|                     <v-col cols="auto"> | ||||
|                         <GameStatus :game="props.game" /> | ||||
|                         <GameStatus :game="props.game" :dealer="props.dealer" /> | ||||
|                     </v-col> | ||||
|                 </v-row> | ||||
|                 <v-row> | ||||
|   | ||||
| @@ -25,6 +25,7 @@ import type { Game } from '@/lib/game'; | ||||
|  | ||||
| export interface Props { | ||||
|     game: Game; | ||||
|     dealer: boolean; | ||||
| } | ||||
|  | ||||
| const props = defineProps<Props>(); | ||||
| @@ -36,7 +37,7 @@ const roundChips = computed(() => [ | ||||
| ] as const); | ||||
|  | ||||
| const actionMessages: Record<Game["action"], (game: Game) => 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", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user