Class Human

java.lang.Object
battleship.model.player.AbstractPlayer
battleship.model.player.Human
All Implemented Interfaces:
Player

public class Human
extends AbstractPlayer
This object do nothing itself, it just an interface to know the type of player (Human or not), each view interact with the player with its methods
  • Constructor Details

    • Human

      public Human()
  • Method Details

    • chooseMove

      public Pair<java.lang.Integer,​java.lang.Integer> chooseMove()
      Description copied from interface: Player
      Used by computer only
      Returns:
      coords in its opponent grid to play a move
      See Also:
      Random.chooseMove()
    • placeShips

      public void placeShips()
      Description copied from interface: Player
      Used by Computer instances to place ships