feat: NCS-37 Quarkus integration #35

Merged
Janis merged 16 commits from feat/NCS-37-rework into main 2026-04-21 12:35:21 +02:00
4 changed files with 31 additions and 32 deletions
Showing only changes of commit 5fafd94ea8 - Show all commits
@@ -194,8 +194,7 @@ class GameEngine(
currentContext = currentContext.withResult(Some(GameResult.Draw(DrawReason.ThreefoldRepetition))) currentContext = currentContext.withResult(Some(GameResult.Draw(DrawReason.ThreefoldRepetition)))
invoker.clear() invoker.clear()
notifyObservers(DrawEvent(currentContext, DrawReason.ThreefoldRepetition)) notifyObservers(DrawEvent(currentContext, DrawReason.ThreefoldRepetition))
else else notifyObservers(InvalidMoveEvent(currentContext, InvalidMoveReason.DrawCannotBeClaimed))
notifyObservers(InvalidMoveEvent(currentContext, InvalidMoveReason.DrawCannotBeClaimed))
} }
/** Load a game using the provided importer. If the imported context has moves, they are replayed through the command /** Load a game using the provided importer. If the imported context has moves, they are replayed through the command
@@ -4,7 +4,7 @@ import de.nowchess.api.player.{PlayerId, PlayerInfo}
import de.nowchess.chess.engine.GameEngine import de.nowchess.chess.engine.GameEngine
import io.quarkus.test.junit.QuarkusTest import io.quarkus.test.junit.QuarkusTest
import jakarta.inject.Inject import jakarta.inject.Inject
import org.junit.jupiter.api.{Test, DisplayName} import org.junit.jupiter.api.{DisplayName, Test}
import org.junit.jupiter.api.Assertions.* import org.junit.jupiter.api.Assertions.*
import scala.compiletime.uninitialized import scala.compiletime.uninitialized
@@ -4,7 +4,7 @@ import de.nowchess.api.dto.*
import de.nowchess.chess.exception.BadRequestException import de.nowchess.chess.exception.BadRequestException
import io.quarkus.test.junit.QuarkusTest import io.quarkus.test.junit.QuarkusTest
import jakarta.inject.Inject import jakarta.inject.Inject
import org.junit.jupiter.api.{Test, DisplayName} import org.junit.jupiter.api.{DisplayName, Test}
import org.junit.jupiter.api.Assertions.* import org.junit.jupiter.api.Assertions.*
import scala.compiletime.uninitialized import scala.compiletime.uninitialized