Create route to list all the games

This commit is contained in:
2025-03-17 22:36:08 +01:00
parent 8074881d57
commit c3155da23c
14 changed files with 304 additions and 18 deletions

View File

@@ -0,0 +1,10 @@
package eventDemo.app
import eventDemo.business.entity.Card
import eventDemo.business.entity.Deck
fun Deck.allCardCount(): Int =
stack.size + discard.size + playersHands.values.flatten().size
fun Deck.allCards(): Set<Card> =
stack + discard + playersHands.values.flatten()