feat(game): add blackjack game component and routing
Some checks failed
Some checks failed
This commit is contained in:
parent
32aa753452
commit
eb153f4459
12 changed files with 273 additions and 2 deletions
|
@ -0,0 +1,23 @@
|
|||
<app-navbar></app-navbar>
|
||||
|
||||
<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
|
||||
(onHit)="onHit()"
|
||||
(onStand)="onStand()"
|
||||
(onLeave)="leaveGame()"
|
||||
></app-game-controls>
|
||||
</div>
|
||||
|
||||
<div class="lg:col-span-1 space-y-6">
|
||||
<app-game-info
|
||||
[balance]="balance()"
|
||||
[currentBet]="currentBet"
|
||||
(onNewGameClick)="onNewGame()"
|
||||
></app-game-info>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in a new issue