Package game

Klasse GameLogic

java.lang.Object
game.GameLogic

public class GameLogic extends Object
This class provides the logic for a game
Version:
1.0
Autor:
Isabell Hans
  • Konstruktordetails

    • GameLogic

      public GameLogic(ArrayList<Player> players)
      Constructor for the class GameLogic
      Parameter:
      players - The list of players
  • Methodendetails

    • start

      public void start(Scanner scanner)
      This method starts a new game round by drawing cards
      Parameter:
      scanner - The scanner used in the calling method
    • play

      public void play(Scanner scanner, Player player)
      This method starts a round in the current game
      Parameter:
      scanner - The scanner used in the calling method
      player - The player whose turn it is
    • startNewGame

      public void startNewGame(Scanner scanner)
      This method starts a new game
      Parameter:
      scanner - The scanner used in the calling method