Class GomokuAI


public class GomokuAI extends Player
  • Field Details

    • random

      Random random
      The random initialization
    • difficulty

      int difficulty
      The difficulty of the GomokuAI
  • Constructor Details

    • GomokuAI

      public GomokuAI()
  • Method Details

    • chooseMove

      public GomokuCell chooseMove(GomokuBoard board)
      Return the coordinate of the move played by the Gomoku AI.
      Specified by:
      chooseMove in class Player
      Parameters:
      board - The actual Gomoku board.
      Returns:
      The Cell of the move played.
    • GetCellPoint

      public Map<GomokuCell, Integer> GetCellPoint(GomokuBoard board)
      Return a Map of all Cell playable, and their point.
      Parameters:
      board - The actual Gomoku board.
      Returns:
      the Map of all Cell playable, and their point.