- All Superinterfaces:
GoalScorer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
default double
Calculates the estimated score for a given block position to the goal.
default boolean
Checks if the given world state indicates that the goal is reached.
-
Method Details
-
-
computeScore
Calculates the estimated score for a given block position to the goal. Usually this means the
distance from achieving the goal.
- Specified by:
computeScore
in interface GoalScorer
- Parameters:
graph
- the graph to calculate the score for
blockPosition
- the block position to calculate the score for
actions
- the actions that have been executed to reach the current state
- Returns:
- the score for the given world state
-
isFinished
Checks if the given world state indicates that the goal is reached.
- Specified by:
isFinished
in interface GoalScorer
- Parameters:
current
- the node to check
- Returns:
- true if the goal is reached, false otherwise