Class FiveGame.ProgrammedAgent

java.lang.Object
nl.uu.cs.aplib.exampleUsages.fiveGame.FiveGame.RandomPlayer
nl.uu.cs.aplib.exampleUsages.fiveGame.FiveGame.ProgrammedAgent
Enclosing class:
FiveGame

public static class FiveGame.ProgrammedAgent extends FiveGame.RandomPlayer
  • Field Details

  • Constructor Details

  • Method Details

    • programMoves

      public void programMoves(int... moves)
    • move

      public boolean move()
      Description copied from class: FiveGame.RandomPlayer
      Find a random empty place, which is adjacent to another of the same type, and put a piece there. If there is no such square then choose a random empty square. If there is no empty square left, the method returns false.
      Overrides:
      move in class FiveGame.RandomPlayer