feat(blackjack): implement game start and controls functionality
All checks were successful
All checks were successful
This commit is contained in:
parent
d0ba0eb71d
commit
99f9f8d3c3
9 changed files with 320 additions and 54 deletions
|
@ -3,20 +3,23 @@
|
|||
<div class="container mx-auto px-4 py-6 space-y-8">
|
||||
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
|
||||
<div class="lg:col-span-3 space-y-6 flex flex-col gap-4">
|
||||
<app-dealer-hand [cards]="dealerCards"></app-dealer-hand>
|
||||
<app-player-hand [cards]="playerCards"></app-player-hand>
|
||||
<app-game-controls
|
||||
(hit)="onHit()"
|
||||
(stand)="onStand()"
|
||||
(leave)="leaveGame()"
|
||||
></app-game-controls>
|
||||
<app-dealer-hand [cards]="dealerCards()"></app-dealer-hand>
|
||||
<app-player-hand [cards]="playerCards()"></app-player-hand>
|
||||
@if (gameInProgress()) {
|
||||
<app-game-controls
|
||||
(hit)="onHit()"
|
||||
(stand)="onStand()"
|
||||
(leave)="leaveGame()"
|
||||
></app-game-controls>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="lg:col-span-1 space-y-6">
|
||||
<app-game-info
|
||||
[balance]="balance()"
|
||||
[currentBet]="currentBet"
|
||||
(newGame)="onNewGame()"
|
||||
[currentBet]="currentBet()"
|
||||
[gameInProgress]="gameInProgress()"
|
||||
(newGame)="onNewGame($event)"
|
||||
></app-game-info>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue