1 | package com.takenoko.bot.utils.pathfinding.irrigation; | |
2 | ||
3 | import com.takenoko.engine.Board; | |
4 | import com.takenoko.layers.irrigation.EdgePosition; | |
5 | ||
6 | record Node(Board board, int gCost, int hCost, Node parent, EdgePosition edgePosition) { | |
7 | int fCost() { | |
8 |
2
1. fCost : Replaced integer addition with subtraction → KILLED 2. fCost : replaced int return with 0 for com/takenoko/bot/utils/pathfinding/irrigation/Node::fCost → KILLED |
return gCost + hCost; |
9 | } | |
10 | } | |
Mutations | ||
8 |
1.1 2.2 |