Class NodeUtil
- java.lang.Object
-
- ai.nettogrof.battlesnake.treesearch.node.NodeUtil
-
public final class NodeUtil extends Object
This NodeUtil class- Version:
- Summer 2022
- Author:
- carl.lajeunesse
-
-
Constructor Summary
Constructors Modifier Constructor Description privateNodeUtil()basic/ useless constructor
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractNodegetBestNode(AbstractNode node)Get the best childstatic AbstractNodegetSmallestNode(AbstractNode root)Return the small child (in size) that are still expendable
-
-
-
Method Detail
-
getSmallestNode
public static AbstractNode getSmallestNode(AbstractNode root)
Return the small child (in size) that are still expendable- Parameters:
root- Parent node- Returns:
- the smallest child.
-
getBestNode
public static AbstractNode getBestNode(AbstractNode node)
Get the best child- Parameters:
node- Parent node- Returns:
- the best child
-
-