Package net.royalur.agent.utility
Class PiecesAdvancedUtilityFn
java.lang.Object
net.royalur.agent.utility.UtilityFunction
net.royalur.agent.utility.PiecesAdvancedUtilityFn
Scores game states based upon how far pieces have been advanced
by each player.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
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.Methods inherited from class net.royalur.agent.utility.UtilityFunction
scoreGame
-
Constructor Details
-
PiecesAdvancedUtilityFn
-
-
Method Details
-
scoreGameStateForLight
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 classUtilityFunction
- Parameters:
game
- The game to evaluate.- Returns:
- A utility value for light in the given state.
-