From 111242a6aa4272fc9867b31219dd9c6802130e53 Mon Sep 17 00:00:00 2001 From: LQ63 Date: Fri, 20 Dec 2024 10:52:37 +0100 Subject: [PATCH] removed comments --- .../de/knockoutwhist/cards/CardManager.scala | 24 ++++--------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/src/main/scala/de/knockoutwhist/cards/CardManager.scala b/src/main/scala/de/knockoutwhist/cards/CardManager.scala index ae1aab8..c9273f3 100644 --- a/src/main/scala/de/knockoutwhist/cards/CardManager.scala +++ b/src/main/scala/de/knockoutwhist/cards/CardManager.scala @@ -1,29 +1,15 @@ package de.knockoutwhist.cards trait CardManager { - /** - * The container of cards, where all cards are stored - * @return List[Card] - */ + def cardContainer: List[Card] - /** - * Shuffles the card container and resets the current index - */ + def shuffleAndReset(): Unit - /** - * Resets the order of the card container and resets the current index - */ + def resetOrder(): Unit - /** - * Returns the next card in the card container - * @return Card - */ + def nextCard(): Card - /** - * Creates a hand of cards - * @param amount The amount of cards in the hand - * @return Hand - */ + def createHand(amount: Int = 7): Hand }