Class PiecesAdvancedUtilityFn

java.lang.Object
net.royalur.agent.utility.UtilityFunction
net.royalur.agent.utility.PiecesAdvancedUtilityFn

public class PiecesAdvancedUtilityFn extends UtilityFunction
Scores game states based upon how far pieces have been advanced by each player.
  • Constructor Details

    • PiecesAdvancedUtilityFn

      public PiecesAdvancedUtilityFn(RuleSet rules)
  • Method Details

    • scoreGameStateForLight

      public float scoreGameStateForLight(FastSimpleGame game)
      Description copied from class: UtilityFunction
      Scores the state of the game numerically, where a positive value represents that light is advantaged, and a negative value represents that dark is advantaged.
      Specified by:
      scoreGameStateForLight in class UtilityFunction
      Parameters:
      game - The game to evaluate.
      Returns:
      A utility value for light in the given state.