Interface VI

All Known Implementing Classes:
EDI

public interface VI
This interface encloses the decision-making part of the program; i.e., one that receives information about the board state and is capable of deciding a move.

This interface is named "VI," for "virtual intelligence," (borrowing the term from a videogame) purely because the term "AI" has become increasingly ambiguous following the obnoxious marketing from tech companies.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    consult(State board)
    Returns the VI's recommended move.
    setColor(byte color)
    Tells the VI which color they should make decisions for; i.e., which player they should try to maximize the score for.
    setTimeLimit(int seconds)
    Imposes a time limit for each turn that the VI takes.
  • Method Details

    • consult

      int consult(State board)
      Returns the VI's recommended move.

      See Move to use the move value.
      Parameters:
      board - The current board state.
      Returns:
      An integer encoding of the move.
    • setColor

      VI setColor(byte color)
      Tells the VI which color they should make decisions for; i.e., which player they should try to maximize the score for.

      See C
      Parameters:
      color - 0 for White, 1 for black.
      Returns:
      The configured VI.
    • setTimeLimit

      VI setTimeLimit(int seconds)
      Imposes a time limit for each turn that the VI takes.
      Parameters:
      seconds - The number of seconds allotted.
      Returns:
      The configured VI.