Class Controller

    • Constructor Detail

      • Controller

        public Controller​(Game game)
        Create an instance of Controller that manage the Game
        Parameters:
        game - the reference to game
    • Method Detail

      • update

        public void update​(Notification notification)
        On Notification parse the message and verify if it is a valid data
        Specified by:
        update in interface Observer<Notification>
        Parameters:
        notification - message received
      • startGame

        public void startGame()
        Function to notify all client about current Game State and to start Game