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,29 @@
|
|||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { PlayingCardComponent } from '../playing-card/playing-card.component';
|
||||
import { Card } from '../../models/card.model';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dealer-hand',
|
||||
standalone: true,
|
||||
imports: [CommonModule, PlayingCardComponent],
|
||||
template: `
|
||||
<div class="space-y-4">
|
||||
<h3 class="section-heading text-2xl mb-4">Croupier's Karten</h3>
|
||||
<div class="card p-6 !bg-red-500">
|
||||
<div class="flex justify-center gap-4 min-h-[160px] p-4 border-2 border-red-400 rounded-lg">
|
||||
<app-playing-card
|
||||
*ngFor="let card of cards"
|
||||
[value]="card.value"
|
||||
[suit]="card.suit"
|
||||
[hidden]="card.hidden"
|
||||
></app-playing-card>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class DealerHandComponent {
|
||||
@Input() cards: Card[] = [];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue