feat: add stand and get game features to blackjack game
This commit is contained in:
parent
4e8530c861
commit
d90fcdcf1e
13 changed files with 446 additions and 32 deletions
|
@ -7,6 +7,8 @@
|
|||
<app-player-hand [cards]="playerCards()"></app-player-hand>
|
||||
@if (gameInProgress()) {
|
||||
<app-game-controls
|
||||
[playerCards]="playerCards()"
|
||||
[gameState]="gameState()"
|
||||
(hit)="onHit()"
|
||||
(stand)="onStand()"
|
||||
(leave)="leaveGame()"
|
||||
|
@ -24,3 +26,10 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Game Result Modal -->
|
||||
<app-game-result
|
||||
[gameState]="gameState()"
|
||||
[amount]="currentBet()"
|
||||
[show]="showGameResult()"
|
||||
></app-game-result>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue