feat(blackjack): implement game start and controls functionality
All checks were successful
CI / Get Changed Files (pull_request) Successful in 7s
CI / eslint (pull_request) Successful in 20s
CI / test-build (pull_request) Successful in 28s
CI / prettier (pull_request) Successful in 34s
CI / Checkstyle Main (pull_request) Successful in 1m1s

This commit is contained in:
Jan-Marlon Leibl 2025-03-26 15:30:55 +01:00
commit 99f9f8d3c3
Signed by: jleibl
GPG key ID: 300B2F906DC6F1D5
9 changed files with 320 additions and 54 deletions

View file

@ -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>