diff --git a/frontend/src/app/app.routes.ts b/frontend/src/app/app.routes.ts
index e783513..6fbef95 100644
--- a/frontend/src/app/app.routes.ts
+++ b/frontend/src/app/app.routes.ts
@@ -16,9 +16,4 @@ export const routes: Routes = [
loadComponent: () => import('./feature/home/home.component'),
canActivate: [authGuard],
},
- {
- path: 'game/blackjack',
- loadComponent: () => import('./feature/game/blackjack/blackjack.component'),
- canActivate: [authGuard],
- },
];
diff --git a/frontend/src/app/feature/game/blackjack/blackjack.component.html b/frontend/src/app/feature/game/blackjack/blackjack.component.html
deleted file mode 100644
index db4d698..0000000
--- a/frontend/src/app/feature/game/blackjack/blackjack.component.html
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
diff --git a/frontend/src/app/feature/game/blackjack/blackjack.component.ts b/frontend/src/app/feature/game/blackjack/blackjack.component.ts
deleted file mode 100644
index 4e66587..0000000
--- a/frontend/src/app/feature/game/blackjack/blackjack.component.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-import { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';
-import { CommonModule } from '@angular/common';
-import { NavbarComponent } from '../../../shared/components/navbar/navbar.component';
-import { Router } from '@angular/router';
-import { UserService } from '../../../service/user.service';
-import { PlayingCardComponent } from './components/playing-card/playing-card.component';
-import { DealerHandComponent } from './components/dealer-hand/dealer-hand.component';
-import { PlayerHandComponent } from './components/player-hand/player-hand.component';
-import { GameControlsComponent } from './components/game-controls/game-controls.component';
-import { GameInfoComponent } from './components/game-info/game-info.component';
-import { Card } from './models/card.model';
-
-@Component({
- selector: 'app-blackjack',
- standalone: true,
- imports: [
- CommonModule,
- NavbarComponent,
- PlayingCardComponent,
- DealerHandComponent,
- PlayerHandComponent,
- GameControlsComponent,
- GameInfoComponent,
- ],
- templateUrl: './blackjack.component.html',
- changeDetection: ChangeDetectionStrategy.OnPush,
-})
-export default class BlackjackComponent {
- private router = inject(Router);
- private userService = inject(UserService);
-
- dealerCards: Card[] = [
- { value: '2', suit: '♥', hidden: false },
- { value: '3', suit: '♦', hidden: false },
- { value: 'B', suit: '□', hidden: true },
- ];
-
- playerCards: Card[] = [];
- currentBet = 0;
- balance = signal(0);
-
- constructor() {
- this.userService.getCurrentUser().subscribe((user) => {
- this.balance.set(user?.balance ?? 0);
- });
- }
-
- onHit(): void {
- // Implementation for hit action
- }
-
- onStand(): void {
- // Implementation for stand action
- }
-
- leaveGame(): void {
- this.router.navigate(['/home']);
- }
-
- onNewGame(): void {
- // Implementation for new game
- }
-}
diff --git a/frontend/src/app/feature/game/blackjack/components/dealer-hand/dealer-hand.component.ts b/frontend/src/app/feature/game/blackjack/components/dealer-hand/dealer-hand.component.ts
deleted file mode 100644
index 6b8cdce..0000000
--- a/frontend/src/app/feature/game/blackjack/components/dealer-hand/dealer-hand.component.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-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: `
-
- `,
- changeDetection: ChangeDetectionStrategy.OnPush,
-})
-export class DealerHandComponent {
- @Input() cards: Card[] = [];
-}
diff --git a/frontend/src/app/feature/game/blackjack/components/game-controls/game-controls.component.ts b/frontend/src/app/feature/game/blackjack/components/game-controls/game-controls.component.ts
deleted file mode 100644
index c78111f..0000000
--- a/frontend/src/app/feature/game/blackjack/components/game-controls/game-controls.component.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import { ChangeDetectionStrategy, Component, EventEmitter, Output } from '@angular/core';
-import { CommonModule } from '@angular/common';
-
-@Component({
- selector: 'app-game-controls',
- standalone: true,
- imports: [CommonModule],
- template: `
-
-
-
-
-
- `,
- changeDetection: ChangeDetectionStrategy.OnPush,
-})
-export class GameControlsComponent {
- @Output() hit = new EventEmitter();
- @Output() stand = new EventEmitter();
- @Output() leave = new EventEmitter();
-}
diff --git a/frontend/src/app/feature/game/blackjack/components/game-info/game-info.component.ts b/frontend/src/app/feature/game/blackjack/components/game-info/game-info.component.ts
deleted file mode 100644
index 8f9d532..0000000
--- a/frontend/src/app/feature/game/blackjack/components/game-info/game-info.component.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
-import { CommonModule, CurrencyPipe } from '@angular/common';
-
-@Component({
- selector: 'app-game-info',
- standalone: true,
- imports: [CommonModule, CurrencyPipe],
- template: `
-
-
Spiel Informationen
-
-
- Guthaben:
- {{ balance | currency: 'EUR' }}
-
-
- Aktuelle Wette:
- 0 ? 'text-accent-red' : 'text-text-secondary'">
- {{ currentBet | currency: 'EUR' }}
-
-
-
-
-
- `,
- changeDetection: ChangeDetectionStrategy.OnPush,
-})
-export class GameInfoComponent {
- @Input() balance = 0;
- @Input() currentBet = 0;
- @Output() newGame = new EventEmitter();
-}
diff --git a/frontend/src/app/feature/game/blackjack/components/player-hand/player-hand.component.ts b/frontend/src/app/feature/game/blackjack/components/player-hand/player-hand.component.ts
deleted file mode 100644
index 2dc50c0..0000000
--- a/frontend/src/app/feature/game/blackjack/components/player-hand/player-hand.component.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-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-player-hand',
- standalone: true,
- imports: [CommonModule, PlayingCardComponent],
- template: `
-
- `,
- changeDetection: ChangeDetectionStrategy.OnPush,
-})
-export class PlayerHandComponent {
- @Input() cards: Card[] = [];
-}
diff --git a/frontend/src/app/feature/game/blackjack/components/playing-card/playing-card.component.ts b/frontend/src/app/feature/game/blackjack/components/playing-card/playing-card.component.ts
deleted file mode 100644
index dc93df8..0000000
--- a/frontend/src/app/feature/game/blackjack/components/playing-card/playing-card.component.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
-import { CommonModule } from '@angular/common';
-
-@Component({
- selector: 'app-playing-card',
- standalone: true,
- imports: [CommonModule],
- template: `
-
- {{ value }}
- {{ suit }}
- {{
- value
- }}
-
- `,
- changeDetection: ChangeDetectionStrategy.OnPush,
-})
-export class PlayingCardComponent {
- @Input({ required: true }) value!: string;
- @Input({ required: true }) suit!: string;
- @Input({ required: true }) hidden!: boolean;
-}
diff --git a/frontend/src/app/feature/game/blackjack/models/card.model.ts b/frontend/src/app/feature/game/blackjack/models/card.model.ts
deleted file mode 100644
index 79b5ad1..0000000
--- a/frontend/src/app/feature/game/blackjack/models/card.model.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export interface Card {
- value: string;
- suit: string;
- hidden: boolean;
-}
diff --git a/frontend/src/app/feature/home/home.component.html b/frontend/src/app/feature/home/home.component.html
index b1bfd9b..0d4708a 100644
--- a/frontend/src/app/feature/home/home.component.html
+++ b/frontend/src/app/feature/home/home.component.html
@@ -34,9 +34,7 @@
class="absolute bottom-4 left-4 right-4 transform translate-y-4 group-hover:translate-y-0 transition-transform duration-300"
>
{{ game.name }}
-
+
@@ -61,9 +59,7 @@
class="absolute bottom-4 left-4 right-4 transform translate-y-4 group-hover:translate-y-0 transition-transform duration-300"
>
{{ game.name }}
-
+
diff --git a/frontend/src/app/feature/home/home.component.ts b/frontend/src/app/feature/home/home.component.ts
index b3237ee..5baf2a0 100644
--- a/frontend/src/app/feature/home/home.component.ts
+++ b/frontend/src/app/feature/home/home.component.ts
@@ -38,37 +38,31 @@ export default class HomeComponent implements OnInit {
id: '1',
name: 'Poker',
image: '/poker.webp',
- route: '/game/poker',
},
{
id: '2',
name: 'Blackjack',
image: '/blackjack.webp',
- route: '/game/blackjack',
},
{
id: '3',
name: 'Slots',
image: '/slots.webp',
- route: '/game/slots',
},
{
id: '4',
name: 'Plinko',
image: '/plinko.webp',
- route: '/game/plinko',
},
{
id: '5',
name: 'Liars Dice',
image: '/liars-dice.webp',
- route: '/game/liars-dice',
},
{
id: '6',
name: 'Lootboxen',
image: '/lootbox.webp',
- route: '/game/lootbox',
},
];
@@ -89,8 +83,4 @@ export default class HomeComponent implements OnInit {
closeDepositConfirmationModal() {
this.isDepositSuccessful = false;
}
-
- navigateToGame(route: string) {
- this.router.navigate([route]);
- }
}
diff --git a/frontend/src/app/model/Game.ts b/frontend/src/app/model/Game.ts
index 9adbf7a..a3f3e74 100644
--- a/frontend/src/app/model/Game.ts
+++ b/frontend/src/app/model/Game.ts
@@ -2,5 +2,4 @@ export interface Game {
id: string;
name: string;
image: string;
- route: string;
}