feat: Update routing and websocket configuration for game state management (#109)

Reviewed-on: #109
This commit is contained in:
2025-12-14 15:10:43 +01:00
parent 13038b0cb9
commit 35f608513d
6 changed files with 15 additions and 17 deletions

View File

@@ -2,13 +2,13 @@ package dto.subDTO
import de.knockoutwhist.cards.Hand
case class HandDTO(card: List[CardDTO])
case class HandDTO(cards: List[CardDTO])
object HandDTO {
def apply(hand: Hand): HandDTO = {
HandDTO(
card = hand.cards.zipWithIndex.map { case (card, idx) => CardDTO(card, idx) }
cards = hand.cards.zipWithIndex.map { case (card, idx) => CardDTO(card, idx) }
)
}