Class DuelNode
- java.lang.Object
-
- ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
- ai.nettogrof.battlesnake.treesearch.node.AbstractDecisionNode
-
- ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
- ai.nettogrof.battlesnake.treesearch.search.standard.DuelNode
-
public class DuelNode extends AbstractEvaluationNode
This Duel node class must be use when only 2 snakes left, and in standard mode. Used by Nessegrev-Gamma in the Spring 2021 league- Version:
- Spring 2021
- Author:
- carl.lajeunesse
-
-
Field Summary
-
Fields inherited from class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
allChildsCount, boardInfo, child, exp, food, hazard, ONE, possibleMove, score, scoreRatio, snakes
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractNode
createNode(List<SnakeInfo> snakes, AbstractNode currentNode)
Uses to create duel nodeprivate void
setScore()
Sets the node score-
Methods inherited from class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
addBasicLengthScore, addScoreDistance, addScoreDistanceAll, addSizeCompareScore, addToHash, adjustScodeBasedonBoardControl, applyNewHash, generateHash, initBoard, listAreaControl, setWinnerMaxScore
-
Methods inherited from class ai.nettogrof.battlesnake.treesearch.node.AbstractDecisionNode
countSnakeAlive, updateScore
-
Methods inherited from class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
addChild, getBoardInfo, getChild, getChildCount, getFood, getHazard, getScoreRatio, getSnakes, isExp, isSingleSnake, setExp, setPossibleMove, updateChildCount, updateScoreRatio
-
-
-
-
Method Detail
-
setScore
private void setScore()
Sets the node score
-
createNode
public AbstractNode createNode(List<SnakeInfo> snakes, AbstractNode currentNode)
Uses to create duel node- Specified by:
createNode
in classAbstractNode
- Parameters:
snakes
- List of snake InfocurrentNode
- Current node- Returns:
- new node from this type
-
-