9 |
Oops!
10 |
Sorry, an unexpected error has occurred.
11 |
12 | );
13 | }
14 |
--------------------------------------------------------------------------------
/backend/api/src/main/kotlin/software/shonk/lobby/adapters/incoming/createLobby/CreateLobbyCommand.kt:
--------------------------------------------------------------------------------
1 | package software.shonk.lobby.adapters.incoming.createLobby
2 |
3 | import software.shonk.lobby.domain.PlayerNameString
4 |
5 | data class CreateLobbyCommand(val playerName: PlayerNameString) {
6 |
7 | constructor(playerName: String?) : this(PlayerNameString.from(playerName))
8 | }
9 |
--------------------------------------------------------------------------------
/backend/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | kotlin("jvm") version "2.0.20"
3 | }
4 |
5 | group = "software.shonk"
6 | version = "1.0-SNAPSHOT"
7 |
8 | repositories {
9 | mavenCentral()
10 | }
11 |
12 | dependencies {
13 | testImplementation(kotlin("test"))
14 | }
15 |
16 | tasks.test {
17 | useJUnitPlatform()
18 | }
19 | kotlin {
20 | jvmToolchain(21)
21 | }
22 |
--------------------------------------------------------------------------------
/frontend/app/src/components/canvasVisu/CanvasVisuProps.ts:
--------------------------------------------------------------------------------
1 | import { HexagonalTileProps } from "@/domain/HexagonalTileProps.tsx";
2 |
3 | export interface CanvasVisuProps {
4 | defaultTileProps: HexagonalTileProps;
5 | canvasWidth: number;
6 | canvasHeight: number;
7 | hex_count: number;
8 | scale_factor_for_space_between_hexes: number;
9 | cornerRadius: number;
10 | }
11 |
--------------------------------------------------------------------------------
/backend/api/src/main/kotlin/software/shonk/lobby/domain/exceptions/PlayerNotInLobbyException.kt:
--------------------------------------------------------------------------------
1 | package software.shonk.lobby.domain.exceptions
2 |
3 | import software.shonk.lobby.domain.PlayerNameString
4 |
5 | class PlayerNotInLobbyException(playerNameString: PlayerNameString, val lobbyId: Long) :
6 | Exception("Player ${playerNameString.getName()} has not joined lobby $lobbyId yet")
7 |
--------------------------------------------------------------------------------
/frontend/app/src/components/loadingSpinner/LoadingSpinner.tsx:
--------------------------------------------------------------------------------
1 | import styles from "./LoadingSpinner.module.css";
2 |
3 | function LoadingSpinner() {
4 | return (
5 |