Package game
Klasse GameLogic
java.lang.Object
game.GameLogic
This class provides the logic for a game
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Konstruktordetails
-
GameLogic
Constructor for the class GameLogic- Parameter:
players
- The list of players
-
-
Methodendetails
-
start
This method starts a new game round by drawing cards- Parameter:
scanner
- The scanner used in the calling method
-
play
This method starts a round in the current game- Parameter:
scanner
- The scanner used in the calling methodplayer
- The player whose turn it is
-
startNewGame
This method starts a new game- Parameter:
scanner
- The scanner used in the calling method
-