Class Computer

java.lang.Object
battleship.model.player.AbstractPlayer
battleship.model.player.Computer
All Implemented Interfaces:
Player
Direct Known Subclasses:
Random

public abstract class Computer
extends AbstractPlayer

Computer super class, all player object which use an algorithm to calculate coordinates to use should extend from this object.

Random is the only algorithm include here but another algorithm can be easily implemented

  • Constructor Details

    • Computer

      public Computer()
  • Method Details

    • placeShipRandomly

      public void placeShipRandomly()