Class OpeningBook


  • public class OpeningBook
    extends java.lang.Object
    manages an opening book for the game of amazons
    • Method Detail

      • copy

        public OpeningBook copy()
        Returns:
        a new opening book that can be used to make moves without affecting the state of this opening book
      • isActive

        public boolean isActive()
        Returns:
        next turn is in opening book
      • makeMove

        public void makeMove​(Turn turn)
        updates the state of the opening book
        Parameters:
        turn - which turn was made
      • nextTurn

        public Turn nextTurn()
        Returns:
        best next turn from opening book