A B C D E F G H I J K L M N O P R S T U W Y
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractBestFirstSearch - Class in ai.nettogrof.battlesnake.treesearch
-
This abstract BestFirst search, provide basic method use in any search using Best First type of search
- AbstractBestFirstSearch() - Constructor for class ai.nettogrof.battlesnake.treesearch.AbstractBestFirstSearch
-
Sole constructor.
- AbstractDecisionNode - Class in ai.nettogrof.battlesnake.treesearch.node
-
This abstract node class is the based of all node class, provide basic update Score Currently using Paranoid only, I hope to add MaxN soon
- AbstractDecisionNode() - Constructor for class ai.nettogrof.battlesnake.treesearch.node.AbstractDecisionNode
-
Basic constructor
- AbstractDecisionNode(List<SnakeInfo>, FoodInfo, BoardInfo) - Constructor for class ai.nettogrof.battlesnake.treesearch.node.AbstractDecisionNode
-
Basic constructor
- AbstractEvaluationNode - Class in ai.nettogrof.battlesnake.treesearch.node
-
This abstract evaluation node class is the based of all node class methods evaluation, provide evaluation method use in any node.
- AbstractEvaluationNode(List<SnakeInfo>, FoodInfo, BoardInfo) - Constructor for class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
Constructor with snakes and food information
- AbstractHazard - Class in ai.nettogrof.battlesnake.info.hazard
-
Abstract hazard class
- AbstractHazard(JsonNode) - Constructor for class ai.nettogrof.battlesnake.info.hazard.AbstractHazard
-
Single constructor need the jsonNode board
- AbstractMCTS - Class in ai.nettogrof.battlesnake.treesearch
-
This abstract MCTS search, provide basic method use in any search using MCTS type of search
- AbstractMCTS() - Constructor for class ai.nettogrof.battlesnake.treesearch.AbstractMCTS
-
Sole constructor.
- AbstractMultiThreadSnakeAI - Class in ai.nettogrof.battlesnake.snakes
-
Any snake using a multithread tree-search could extend this abstract class it contains basic constant fields, related to the field name in json call from BattleSnake.
- AbstractMultiThreadSnakeAI() - Constructor for class ai.nettogrof.battlesnake.snakes.AbstractMultiThreadSnakeAI
-
Basic and unused constructor
- AbstractMultiThreadSnakeAI(String) - Constructor for class ai.nettogrof.battlesnake.snakes.AbstractMultiThreadSnakeAI
-
Constructor with the gameid,
- AbstractNode - Class in ai.nettogrof.battlesnake.treesearch.node
-
This abstract node class is the based of all node class, provide basic method use in any node.
- AbstractNode() - Constructor for class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Basic constructor
- AbstractNode(List<SnakeInfo>, FoodInfo, BoardInfo) - Constructor for class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Constructor with the minimal info needed
- AbstractRoyaleNode - Class in ai.nettogrof.battlesnake.treesearch.search.royale
-
This abstract royale node class is the based of all node class, provide basic method use in any node for royale rules.
- AbstractRoyaleNode(List<SnakeInfo>, FoodInfo, AbstractHazard, BoardInfo) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.royale.AbstractRoyaleNode
-
Constructor with snakes and food information
- AbstractRoyaleSearch - Class in ai.nettogrof.battlesnake.treesearch.search.royale
-
This abstract Royale search, provide basic method use in any search in battlesnake royale mode
- AbstractRoyaleSearch(AbstractNode, int, int, long, int, GameRuleset) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.royale.AbstractRoyaleSearch
-
Constructor used to expand to do the tree search.
- AbstractSearch - Class in ai.nettogrof.battlesnake.treesearch
-
This abstract search class is the based of all search class, provide basic method use in any search.
- AbstractSearch() - Constructor for class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Basic Constructor
- AbstractSearchSnakeAI - Class in ai.nettogrof.battlesnake.snakes
-
Any snake using a search could extend this abstract class it contains basic constant fields, related to the field name in json call from BattleSnake.
- AbstractSearchSnakeAI() - Constructor for class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
Basic and unsed constructor
- AbstractSearchSnakeAI(String) - Constructor for class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
Constructor with the gameid,
- AbstractSimpleSnakeAI - Class in ai.nettogrof.battlesnake.snakes
-
Any snake simple should extend this abstract class will contains basic constant fields, related to the field name in json call from BattleSnake.
- AbstractSimpleSnakeAI() - Constructor for class ai.nettogrof.battlesnake.snakes.AbstractSimpleSnakeAI
-
Basic / unused constructor
- AbstractSimpleSnakeAI(String) - Constructor for class ai.nettogrof.battlesnake.snakes.AbstractSimpleSnakeAI
-
Constructor with the gameid,
- AbstractSnakeAI - Class in ai.nettogrof.battlesnake.snakes
-
Any snake should extend this abstract class it contains basic constant fields, related to the field name in json call from BattleSnake.
- AbstractSnakeAI() - Constructor for class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Basic constructor not used
- AbstractSnakeAI(String) - Constructor for class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constructor with the gameid,
- AbstractSquadSearch - Class in ai.nettogrof.battlesnake.treesearch.search.squad
-
This abstract Squad search, provide basic method use in any search in battlesnake squad mode
- AbstractSquadSearch() - Constructor for class ai.nettogrof.battlesnake.treesearch.search.squad.AbstractSquadSearch
-
Basic constructor
- AbstractSquadSearch(AbstractNode, int, int) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.squad.AbstractSquadSearch
-
Constructor used to expand the tree once.
- AbstractSquadSearch(AbstractNode, int, int, long, int, GameRuleset) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.squad.AbstractSquadSearch
-
Constructor used to expand to do the tree search.
- AbstractStandardSearch - Class in ai.nettogrof.battlesnake.treesearch.search.standard
-
This abstract Standard search, provide basic method use in any search in battlesnake standard mode
- AbstractStandardSearch() - Constructor for class ai.nettogrof.battlesnake.treesearch.search.standard.AbstractStandardSearch
-
Basic constructor
- AbstractStandardSearch(AbstractNode, int, int) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.standard.AbstractStandardSearch
-
Constructor used to expand the tree once.
- AbstractTreeSearchSnakeAI - Class in ai.nettogrof.battlesnake.snakes
-
Any snake using a tree-search could extend this abstract class it contains basic constant fields, related to the field name in json call from BattleSnake.
- AbstractTreeSearchSnakeAI() - Constructor for class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
Basic and unsed constructor
- AbstractTreeSearchSnakeAI(String) - Constructor for class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
Constructor with the gameid,
- addBasicLengthScore() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
Adding basic length to score and health score = length + health /50
- addChild(AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Add a child to this node
- addFoodValue(int[][], int[]) - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.AbstractRoyaleNode
-
Adding value if a food is in the controlled area
- addFoodValue(int[][], JsonNode, JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
This method add food value on the board based on your current
FOORVALUE - health
- addHazardsValue(int[][], JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
This method add a value on each square of hazards
- addMove(int, List<SnakeInfo>, SnakeInfo, AbstractNode, List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
This method add move to the list if the snake can move in the new head position.
- addNodeTotalCount(int) - Method in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
add node count to total
- addScoreDistance(int) - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
Adjust our snake score for the distance between head and the nearest food
- addScoreDistanceAll() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
Adjust our snake score for the distance between head and the nearest food
- addSizeCompareScore() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
Add or remove score to our snake if it longer or shorter than the other snakes
- addTimeTotal(long) - Method in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
Add search time to the total
- addToHash(Int2IntOpenHashMap, int, int) - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
Add the position and value to the hash map
- adjustHazardScore() - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.AbstractRoyaleNode
-
Adjust our snake score according if our head is in hazard
- adjustScodeBasedonBoardControl(int[][]) - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
Adjust the score based on number of square controls by snakes The board array contain the snake number from 1 to X snakes
- adjustScodeBasedonBoardControl(int[][]) - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.AbstractRoyaleNode
-
Adjust the score based on number of square controls by snakes The board array contain the snake number from 1 to X snakes
- ai.nettogrof.battlesnake.info - package ai.nettogrof.battlesnake.info
-
This package is all classes containing data.
- ai.nettogrof.battlesnake.info.hazard - package ai.nettogrof.battlesnake.info.hazard
-
This package contains all Hazard class
- ai.nettogrof.battlesnake.snakes - package ai.nettogrof.battlesnake.snakes
-
This package contains all "Snakes" classes
- ai.nettogrof.battlesnake.snakes.common - package ai.nettogrof.battlesnake.snakes.common
-
Contains constants and utilities
- ai.nettogrof.battlesnake.treesearch - package ai.nettogrof.battlesnake.treesearch
-
Contains everything related to tree search
- ai.nettogrof.battlesnake.treesearch.node - package ai.nettogrof.battlesnake.treesearch.node
-
Contain Abstract Node class
- ai.nettogrof.battlesnake.treesearch.search.constrictor - package ai.nettogrof.battlesnake.treesearch.search.constrictor
-
Contains search and node classes related to constrictor mode
- ai.nettogrof.battlesnake.treesearch.search.fun - package ai.nettogrof.battlesnake.treesearch.search.fun
-
Contains fun search to prevent our snake to do certain things
- ai.nettogrof.battlesnake.treesearch.search.royale - package ai.nettogrof.battlesnake.treesearch.search.royale
-
Contains search and node classes related to royale mode
- ai.nettogrof.battlesnake.treesearch.search.royale.wrapped - package ai.nettogrof.battlesnake.treesearch.search.royale.wrapped
- ai.nettogrof.battlesnake.treesearch.search.squad - package ai.nettogrof.battlesnake.treesearch.search.squad
-
Contains search and node classes related to squad mode
- ai.nettogrof.battlesnake.treesearch.search.standard - package ai.nettogrof.battlesnake.treesearch.search.standard
-
Contains search and node classes related to standard mode
- alive - Variable in class ai.nettogrof.battlesnake.info.SnakeInfo
-
If the snake is still alive
- allChildsCount - Variable in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Counts of all node of that branch
- allowBodyCollisions - Variable in class ai.nettogrof.battlesnake.info.SquadRuleset
- API_V1 - Static variable in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
Current API version used by snakes
- apiversion - Variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
API version use, some snakes are able to play both version v0 and v1.
- apply() - Static method in class ai.nettogrof.battlesnake.snakes.common.CorsFilterUtils
-
Apply https filter to the incoming connection
- applyNewHash(Int2IntOpenHashMap, int[][]) - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
Apply the new Hash map value to the board.
- applyRules(List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.info.SquadRuleset
- applySquadRules(List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.info.GameRuleset
-
Apply Squad rule to all snakes
B
- BASIC_SCORE - Static variable in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
Basic score assign to all snakes to avoid division by 0
- BasicSnake - Class in ai.nettogrof.battlesnake.snakes
-
Basic snake.
- BasicSnake() - Constructor for class ai.nettogrof.battlesnake.snakes.BasicSnake
-
Basic / unused constructor
- BasicSnake(String) - Constructor for class ai.nettogrof.battlesnake.snakes.BasicSnake
-
Constructor with the gameid,
- BattleSnakeConstants - Class in ai.nettogrof.battlesnake.snakes.common
-
This class keep some constant value
- BattleSnakeConstants() - Constructor for class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
Sole constructor.
- bestMove(int, int, Map<String, Integer>, int[][]) - Method in class ai.nettogrof.battlesnake.snakes.BasicSnake
-
Choose the best move
- BOARD - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- boardInfo - Variable in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Board width useful for some evaluation method
- BoardInfo - Class in ai.nettogrof.battlesnake.info
-
Data related to a Snake in non-squad modes
- BoardInfo(int, int) - Constructor for class ai.nettogrof.battlesnake.info.BoardInfo
-
Simple constructor
- BODY - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- borderScore - Static variable in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
Border score to subtract if head on the border of the board
- bots - Static variable in class ai.nettogrof.battlesnake.snakes.Snake
-
Map of current running bots
C
- checkBoardHash(int, int, int[][], int) - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.SquadNode
-
Check the board array if the hash value can expand
- checkHeadToHead(List<ArrayList<SnakeInfo>>) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
This method check if there's a head-to-head collision.
- checkPossibleMove(JsonNode, int[][]) - Method in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
Create a map of possible move and assign a value to them.
- checkWinLost(AbstractNode, AbstractNode, Map<String, String>) - Method in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
Check if it's a win or lost
- child - Variable in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
List of child node
- chooseBestMove(AbstractNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
Choose the best move, based on the assumption that the opponent will always choose the best counter.
- computePayoffMatrix(List<float[]>) - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractDecisionNode
-
Compute the payoff Matric
- CONSTRICTOR - Static variable in class ai.nettogrof.battlesnake.info.GameRuleset
-
Constant Field name
- ConstrictorNode - Class in ai.nettogrof.battlesnake.treesearch.search.constrictor
-
This Constrictor node class must be use only in constrictor mode.
- ConstrictorNode(List<SnakeInfo>, FoodInfo, BoardInfo) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.constrictor.ConstrictorNode
-
Constructor, set the information and evaluate/ set score directly
- ConstrictorSearch - Class in ai.nettogrof.battlesnake.treesearch.search.constrictor
-
This Constrictor search add the possibility to play Constrictor mode It start by search the smallest branch and expand it (256 times) then : 1.
- ConstrictorSearch() - Constructor for class ai.nettogrof.battlesnake.treesearch.search.constrictor.ConstrictorSearch
-
Basic constructor
- ConstrictorSearch(AbstractNode, int, int) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.constrictor.ConstrictorSearch
-
Constructor used to expand the tree once.
- ConstrictorSearch(AbstractNode, int, int, long, int, GameRuleset) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.constrictor.ConstrictorSearch
-
Constructor used to expand to do the tree search.
- cont - Variable in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Control variable to continue the search or not
- CORS_HEADERS - Static variable in class ai.nettogrof.battlesnake.snakes.common.CorsFilterUtils
-
CORS maps info
- CorsFilterUtils - Class in ai.nettogrof.battlesnake.snakes.common
-
This class is used by the "webserver" to accept use CORS header to let a https webpage to call snakes directly Really simple helper for enabling CORS in a spark application;
- CorsFilterUtils() - Constructor for class ai.nettogrof.battlesnake.snakes.common.CorsFilterUtils
-
Basic filter to accept incoming https/web request
- countEmptySquare() - Method in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
Scan the space[][] to count empty square.
- countSnakeAlive() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractDecisionNode
-
Count the number of snake still alive
- cpuLimit - Variable in class ai.nettogrof.battlesnake.snakes.AbstractMultiThreadSnakeAI
-
Number of CPU / thread permit
- createNode(List<SnakeInfo>, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Create a node from the same type
- createNode(List<SnakeInfo>, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.constrictor.ConstrictorNode
-
Uses to create constrictor node
- createNode(List<SnakeInfo>, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.RoyaleDuelNode
-
Uses to create royale duel node
- createNode(List<SnakeInfo>, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.RoyaleFourNode
-
Uses to create fourNode type
- createNode(List<SnakeInfo>, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.wrapped.WrappedRoyaleNode
- createNode(List<SnakeInfo>, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.SquadNode
- createNode(List<SnakeInfo>, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.standard.DuelNode
-
Uses to create duel node
- createNode(List<SnakeInfo>, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.standard.FourNode
-
Uses to create fourNode type
- createNode(List<SnakeInfo>, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.standard.ManyNode
-
Uses to create ManyNode type
- createSnakeInfo(SnakeInfo, int, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Create new SnakeInfo based on the current node and the new head square
- createSnakeInfo(SnakeInfo, int, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.constrictor.ConstrictorSearch
- createSnakeInfo(SnakeInfo, int, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.fun.LimitedMoveRoyaleSearch
- createSnakeInfo(SnakeInfo, int, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.AbstractRoyaleSearch
- createSnakeInfo(SnakeInfo, int, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.AbstractSquadSearch
- createSnakeInfo(SnakeInfo, int, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.SquadSearch
- createSnakeInfo(SnakeInfo, int, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.search.standard.AbstractStandardSearch
D
- DEFAULTRV - Static variable in class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
default openhashmap value
- die() - Method in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Kill the snake
- DOWN - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- downNeck - Static variable in class ai.nettogrof.battlesnake.treesearch.search.fun.LimitedMoveRoyaleSearch
-
Prevent down move if head - neck equals that amount
- DuelNode - Class in ai.nettogrof.battlesnake.treesearch.search.standard
-
This Duel node class must be use when only 2 snakes left, and in standard mode.
- DuelNode(List<SnakeInfo>, FoodInfo, BoardInfo) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.standard.DuelNode
-
Constructor, set the information and evaluate/ set score directly
E
- eat - Variable in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Does the snake just eat
- EMPTY - Static variable in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
Constant value
- EMPTY - Static variable in class ai.nettogrof.battlesnake.snakes.Snake.Handler
-
Empty response
- EMPTY_AREA - Static variable in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
Value for square uncontrolled
- end(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
This method will be call at the end of the game, can be override if you want to clean-up some game info.
- end(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
This method will be call at the end of the game, can be override if you want to clean-up some game info.
- end(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.Snake.Handler
-
/end is called by the engine when a game is complete.
- equals(Object) - Method in class ai.nettogrof.battlesnake.info.FoodInfo
- equals(Object) - Method in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Equals method
- executeMCTS() - Method in class ai.nettogrof.battlesnake.treesearch.AbstractMCTS
-
Execute the MCTS search
- exp - Variable in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Does that node can be explore
- expand(List<AbstractNode>, List<AbstractNode>, GameRuleset) - Method in class ai.nettogrof.battlesnake.snakes.AbstractMultiThreadSnakeAI
-
Expand the base list of node until reaching CPU limit
- ExpertSnake - Class in ai.nettogrof.battlesnake.snakes
-
Expert snake.
- ExpertSnake() - Constructor for class ai.nettogrof.battlesnake.snakes.ExpertSnake
-
Basic Constructor
- ExpertSnake(String) - Constructor for class ai.nettogrof.battlesnake.snakes.ExpertSnake
-
Constructor with the gameid,
F
- fileConfig - Variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Any snake must use a fileConfig (a properties files), and the name of the file must store in the string
- fillBasicScore(float[], int, int) - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractDecisionNode
- fillList(TFloatArrayList[], TFloatArrayList[], TFloatArrayList[], TFloatArrayList[], AbstractNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
This method fill 4 list (one for each direction ) with the score of each node based on the move direction
- fillList(TFloatArrayList, TFloatArrayList, TFloatArrayList, TFloatArrayList, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractBestFirstSearch
-
This method fill 4 list (one for each direction ) with the score of each node based on the move direction
- fillMCTSList(TFloatArrayList, TFloatArrayList, TFloatArrayList, TFloatArrayList, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractMCTS
-
This method fill 4 list (one for each direction ) with the score of each node based on the move direction
- findBestIndex(List<float[]>) - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractDecisionNode
-
Find the best index in the payoff matrix
- findChildNewRoot(List<SnakeInfo>, FoodInfo, HazardSquare) - Method in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
Check in the previous search if a child from root, is equals the current board situation.,
- finishHim(AbstractNode, AbstractNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
In a winning position, this method try to find the shortest way to win.
- finishHim(AbstractNode, AbstractNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
In a winning position, this method try to find the shortest way to win.
- FLODDENEMYGAP - Static variable in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
Constant value
- FLODDENEMYSMALLER - Static variable in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
Constant value
- floodEmptySpace(int, int, int, int[][]) - Method in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
Recursive function to "flood" EMPTY value on positive square.
- FLOODENEMYBIGGER - Static variable in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
Constant value
- FloodFillSnake - Class in ai.nettogrof.battlesnake.snakes
-
FloodFill snake.
- FloodFillSnake() - Constructor for class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
Basic / unused constructor
- FloodFillSnake(String) - Constructor for class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
Constructor with the gameid,
- floodNegative(int, int, int, int[][]) - Method in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
Recursive function to "flood" negative value.
- floodPositive(int, int, int, int[][]) - Method in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
Recursive function to "flood" positive value.
- food - Variable in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Food information
- FoodInfo - Class in ai.nettogrof.battlesnake.info
-
FoodInfo is the class that contain all the informations and related methods to foods
- FoodInfo(JsonNode) - Constructor for class ai.nettogrof.battlesnake.info.FoodInfo
-
Single constructor need the jsonNode board
- foodSpawnChance - Variable in class ai.nettogrof.battlesnake.info.GameRuleset
-
Food spawn chance (0% - 100%)
- FOODVALUE - Static variable in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
Constant value
- foodValueArea - Static variable in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
Value if a FOOD is found in the controlled AREA
- FOUR - Static variable in class ai.nettogrof.battlesnake.treesearch.search.royale.RoyaleFourNode
- FOUR_SNAKE - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- FourNode - Class in ai.nettogrof.battlesnake.treesearch.search.standard
-
This FourNode class must be use when only 3 or 4 snakes left, and in standard mode.
- FourNode(List<SnakeInfo>, FoodInfo, BoardInfo) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.standard.FourNode
-
Constructor, set the information and evaluate/ set score directly
- freeSpace(int, List<SnakeInfo>, SnakeInfo) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Check if the snake can move on the square
- freeSpace(int, List<SnakeInfo>, SnakeInfo) - Method in class ai.nettogrof.battlesnake.treesearch.search.constrictor.ConstrictorSearch
- freeSpace(int, List<SnakeInfo>, SnakeInfo) - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.AbstractRoyaleSearch
- freeSpace(int, List<SnakeInfo>, SnakeInfo) - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.wrapped.WrappedRoyaleSearch
- freeSpace(int, List<SnakeInfo>, SnakeInfo) - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.AbstractSquadSearch
- freeSpace(int, List<SnakeInfo>, SnakeInfo) - Method in class ai.nettogrof.battlesnake.treesearch.search.standard.AbstractStandardSearch
- freeSpaceSquad(int, List<SnakeInfo>, SnakeInfo) - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.AbstractSquadSearch
-
Check if the snake can move on the square for squad mode
G
- gameId - Variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Snakes can play games in parallel, so the game id field is use to distinguish different game
- GameRuleset - Class in ai.nettogrof.battlesnake.info
-
GameRuleset is the class that contain all the informations and related methods to Game ruleset
- GameRuleset(JsonNode) - Constructor for class ai.nettogrof.battlesnake.info.GameRuleset
-
Object containing all game info
- gameType - Variable in class ai.nettogrof.battlesnake.info.GameRuleset
-
game type 0 = Standard 1 = constructor 2 = royale 3 = wrapped 4 = squad
- generateChild() - Method in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
This method is used to generate child node from the root.
- generateChild(AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Expand / Generate child from a node
- generateHash(Int2IntOpenHashMap, Int2IntOpenHashMap, int[][]) - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
Generate new position to be added to hash
- generateHash(Int2IntOpenHashMap, Int2IntOpenHashMap, int[][]) - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.SquadNode
-
Generate new position to be added to hash
- generateResponse(AbstractNode, AbstractNode, JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
Generate the response to send, adding a shout if in winning/losing position.
- generateSnakeInfoDestination(SnakeInfo, AbstractNode, List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Generate all moves possible for a snake given.
- generateSnakeInfoDestination(SnakeInfo, AbstractNode, List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.treesearch.search.fun.LimitedMoveRoyaleSearch
-
Generate all moves possible for a snake given.
- generateSnakeInfoDestination(SnakeInfo, AbstractNode, List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.wrapped.WrappedRoyaleSearch
- genNode(List<SnakeInfo>, FoodInfo, HazardSquare) - Method in class ai.nettogrof.battlesnake.snakes.ExpertSnake
-
This method generate the root node type
- genRoot(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
Generate the root node based on the /move request
- genRoot(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.ExpertSnake
-
Generate the root node based on the /move request
- genSearchType() - Method in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
This method generate the search type
- genSearchType() - Method in class ai.nettogrof.battlesnake.snakes.RightSnake
-
This method generate the search type
- genSnakeInfo(JsonNode, JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.ExpertSnake
-
Generate all snakes info from the json board field
- getBestChild(AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractBestFirstSearch
-
This method find and return the best leaf node
- getbestChildValue(TFloatArrayList, TFloatArrayList, TFloatArrayList, TFloatArrayList) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractBestFirstSearch
-
This method return the scoreRatio of the best choice based on payoff Matrix
- getBestNode(AbstractNode) - Static method in class ai.nettogrof.battlesnake.treesearch.node.NodeUtil
-
Get the best child
- getBestPath(AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractBestFirstSearch
-
This method is use to find the next leaf node to explore using MCTS algo
- getBestPossibleMove(Map<String, Integer>) - Method in class ai.nettogrof.battlesnake.snakes.AbstractSimpleSnakeAI
-
Return the best move from the map
- getBoardInfo() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
- getBorderScore() - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
- getChild() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Gets list of child from this node
- getChildCount() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Return counts of all node of that branch
- getFileConfig() - Method in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Gets the config file to set properties correctly
- getFileConfig() - Method in class ai.nettogrof.battlesnake.snakes.BasicSnake
- getFileConfig() - Method in class ai.nettogrof.battlesnake.snakes.ExpertSnake
- getFileConfig() - Method in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
- getFileConfig() - Method in class ai.nettogrof.battlesnake.snakes.RightSnake
- getFood() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Gets food information,
- getFoodSpawnChance() - Method in class ai.nettogrof.battlesnake.info.GameRuleset
-
Get Food spawn chance
- getFoodValueArea() - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
- getGameType() - Method in class ai.nettogrof.battlesnake.info.GameRuleset
-
Return game type
- getHazard() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Return the hazard object
- getHazard() - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.AbstractRoyaleNode
-
Gets hazard information from this node
- getHazardDamage() - Method in class ai.nettogrof.battlesnake.info.GameRuleset
-
Get Damage per turn
- getHazardScore() - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
- getHead() - Method in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Get the square of the snake head ( first element of the snakeBody)
- getHealth() - Method in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Get the health of the snake
- getHeight() - Method in class ai.nettogrof.battlesnake.info.BoardInfo
- getInfo() - Method in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Return the infos need by Battlesnake when receive a (root GET /) request
- getListHazard() - Method in class ai.nettogrof.battlesnake.info.hazard.AbstractHazard
-
Provide the arraylist of hazards.
- getListHazard() - Method in class ai.nettogrof.battlesnake.info.hazard.HazardSquare
-
Provide the arraylist of hazards.
- getLostShout() - Static method in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
Get losing shout
- getMaxDepth(AbstractNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
Check the depth of the biggest branch
- getMCTSBestPath(AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractMCTS
-
This method is use to find the next leaf node to explore using MCTS algo
- getMctsBias() - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
- getMinimumFood() - Method in class ai.nettogrof.battlesnake.info.GameRuleset
-
Get Minimum food on board
- getName() - Method in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Get the snake's name
- getPartnerIndex(SnakeInfo) - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.SquadNode
-
Gets the index , for the teammate
- getPosition() - Method in class ai.nettogrof.battlesnake.info.FoodInfo
-
Return all food position
- getRuleset() - Method in class ai.nettogrof.battlesnake.info.GameRuleset
-
Return game type
- getScoreRatio() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Gets the score ratio, the score ratio is compute has follow Our snake score / (all others snakes score added)
- getScoreRatio() - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.SquadNode
- getShortestDistance(int) - Method in class ai.nettogrof.battlesnake.info.FoodInfo
-
Get the shortest distance from the position provided to a food.
- getShortestDistance(int, int) - Method in class ai.nettogrof.battlesnake.info.FoodInfo
-
Get the shortest distance from the position provided to a food.
- getSizeAdvantage() - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
- getSkrinkSpeed() - Method in class ai.nettogrof.battlesnake.info.GameRuleset
- getSmallestChild(AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Get the leaf from the smallest branch
- getSmallestNode(AbstractNode) - Static method in class ai.nettogrof.battlesnake.treesearch.node.NodeUtil
-
Return the small child (in size) that are still expendable
- getSnakeBody() - Method in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Get the full snake bodies
- getSnakes() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Gets list of snakes from this node
- getSquad() - Method in class ai.nettogrof.battlesnake.info.SnakeInfo
- getStopExpandLimit() - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
- getTail() - Method in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Get the square of the snake head ( last element of the snakeBody)
- getTailValueArea() - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
- getWidth() - Method in class ai.nettogrof.battlesnake.info.BoardInfo
- getWinnerChild(AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractBestFirstSearch
-
Get the best child/winner from a node
- getWinShout() - Static method in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
Get Winning shout
H
- Handler() - Constructor for class ai.nettogrof.battlesnake.snakes.Snake.Handler
- HANDLER - Static variable in class ai.nettogrof.battlesnake.snakes.Snake
-
Handle the API calls
- hashCode() - Method in class ai.nettogrof.battlesnake.info.FoodInfo
- hashCode() - Method in class ai.nettogrof.battlesnake.info.SnakeInfo
- hazard - Variable in class ai.nettogrof.battlesnake.info.hazard.AbstractHazard
-
Arraylist (int) of all hazard position (based on square formula)
- hazard - Variable in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Hazard information
- HAZARD_VALUE - Static variable in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
- hazardDamage - Variable in class ai.nettogrof.battlesnake.info.GameRuleset
-
Hazard damage per turn
- hazardScore - Static variable in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
Hazard score to subtract if head in hazard
- HazardSquare - Class in ai.nettogrof.battlesnake.info.hazard
-
HazardSquad is the class that contain all the informations and related methods to hazards, using square to search
- HazardSquare(JsonNode) - Constructor for class ai.nettogrof.battlesnake.info.hazard.HazardSquare
-
Single constructor need the jsonNode board
- HEAD - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- health - Variable in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Current health of the snake
- HEALTH - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- height - Variable in class ai.nettogrof.battlesnake.info.BoardInfo
-
Board height
- height - Variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Board height
- height - Variable in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Board height
- HEIGHT_FIELD - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
I
- initBoard() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
Initiate the board array
- initBoard() - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.AbstractRoyaleNode
-
Initiate the board array
- initBoard() - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.SquadNode
-
Initiate the board array
- initPayoffMatrix(List<float[]>) - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractDecisionNode
-
Initiate the payoff matrix
- INVALID_SCORE - Static variable in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
Invalid score used for creating a payoff matrix
- isAlive() - Method in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Return if the snake is alive or not
- isAllowBodyCollisions() - Method in class ai.nettogrof.battlesnake.info.SquadRuleset
- isExp() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Does the node is Expendable
- isFood(int) - Method in class ai.nettogrof.battlesnake.info.FoodInfo
-
Check if there's a food on a particular square (based on square formula)
- isFood(int, int) - Method in class ai.nettogrof.battlesnake.info.FoodInfo
-
Check if there's a food on a particular square
- isHazardSquare(int) - Method in class ai.nettogrof.battlesnake.info.hazard.AbstractHazard
-
Check if a particular square is an hazard square (based on square formula)
- isHazardSquare(int) - Method in class ai.nettogrof.battlesnake.info.hazard.HazardSquare
-
Check if a particular square is an hazard square (based on square formula)
- isSharedElimination() - Method in class ai.nettogrof.battlesnake.info.SquadRuleset
- isSharedHealth() - Method in class ai.nettogrof.battlesnake.info.SquadRuleset
- isSharedLength() - Method in class ai.nettogrof.battlesnake.info.SquadRuleset
- isSingleSnake() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Return true if there's just one snake
- isSnake(int) - Method in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Check if there will be a snake on square on next move
- isSnake(int, String) - Method in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Check if there will be a snake on square on next move
J
- JSON_MAPPER - Static variable in class ai.nettogrof.battlesnake.snakes.Snake
-
Mapper to transform JSON into java object
K
- kill(SnakeInfo, List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
This abstract method will be use to "kill" a snake
- kill(SnakeInfo, List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.treesearch.search.constrictor.ConstrictorSearch
- kill(SnakeInfo, List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.AbstractRoyaleSearch
- kill(SnakeInfo, List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.AbstractSquadSearch
-
This method will be use to "kill" a snake
- kill(SnakeInfo, List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.treesearch.search.standard.AbstractStandardSearch
- killSquad(SnakeInfo, List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.AbstractSquadSearch
-
This method will be use to "kill" a snake in squad
L
- lastChance(AbstractNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
In a losing position, this method try to find the longest way, hpoing that the opponent make a mistake.
- lastChance(AbstractNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
In a losing position, this method try to find the longest way, hpoing that the opponent make a mistake.
- lastRoot - Variable in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
Keep the root node from the previous move, to be able to continue search from the previous "tree"
- LEFT - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- leftNeck - Static variable in class ai.nettogrof.battlesnake.treesearch.search.fun.LimitedMoveRoyaleSearch
-
Prevent left move if head - neck equals that amount
- LimitedMoveRoyaleSearch - Class in ai.nettogrof.battlesnake.treesearch.search.fun
-
This abstract Standard search based on RoyaleSearch provide methods to prevent snake to move in particular direction Royale mode
- LimitedMoveRoyaleSearch(AbstractNode, int, int, long, int, GameRuleset) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.fun.LimitedMoveRoyaleSearch
-
Constructor used to expand to do the tree search.
- listAreaControl() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
Generate score based on the area control by the snake.
- listAreaControl() - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.AbstractRoyaleNode
-
Generate score based on the area control by the snake.
- loadEvaluationValue() - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
Load evaluation properties to get genetic value
- loadEvaluationValue() - Static method in class ai.nettogrof.battlesnake.snakes.Snake
-
Load evaluation properties to get genetic value
- loadProperties(String) - Static method in class ai.nettogrof.battlesnake.snakes.Snake
-
Load Snake properties to get port number
- log - Static variable in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Logging object
- log - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Basic logger object
- LOG - Static variable in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
Logger
- LOG - Static variable in class ai.nettogrof.battlesnake.snakes.Snake
-
Logger
- logValue(TFloatArrayList[], TFloatArrayList[], TFloatArrayList[], TFloatArrayList[]) - Method in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
Log value for each possible move, that help to debug/understand why the snake choose which move.
- LOSE_SHOUT - Static variable in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
When a snake is in losing position, the snake gonna shout one of those line randomly.
- losing - Variable in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
String that gonna be shout by the snake if snake is in a losing position.
M
- main(String[]) - Static method in class ai.nettogrof.battlesnake.snakes.Snake
-
Main entry point.
- ManyNode - Class in ai.nettogrof.battlesnake.treesearch.search.standard
-
This ManyNode class must be use when more than 4 snakes left, and in standard mode.
- ManyNode(List<SnakeInfo>, FoodInfo, BoardInfo) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.standard.ManyNode
-
Constructor, set the information and evaluate/ set score directly
- MAX_HEALTH - Static variable in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
Max Health
- MAX_SCORE - Static variable in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
Max score for a node
- mctsBias - Static variable in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
The Bias value for the Monte-Carlo Tree Search
- mctsScore(AbstractNode, AbstractNode) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractMCTS
-
Calculation of the Upper Confident Bound score.
- MctsSearch - Class in ai.nettogrof.battlesnake.treesearch.search.standard
-
This MCTS search was used during the Spring 2021 league Nessegrev-Gamma snake It start by search the smallest branch and expand it (500 times) then : 1.
- MctsSearch() - Constructor for class ai.nettogrof.battlesnake.treesearch.search.standard.MctsSearch
-
Basic constructor
- MctsSearch(AbstractNode, int, int) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.standard.MctsSearch
-
Constructor used to expand the tree once.
- MctsSearch(AbstractNode, int, int, long, int, GameRuleset) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.standard.MctsSearch
-
Constructor used to expand to do the tree search.
- merge(List<ArrayList<SnakeInfo>>, List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
This method merge previous snake move (list) , with new snake move
- mergeList(List<AbstractNode>, List<AbstractNode>) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractBestFirstSearch
-
This method just merge two lists and remove the duplicate node
- minimumFood - Variable in class ai.nettogrof.battlesnake.info.GameRuleset
-
Minimum food on board
- MINIMUN_SNAKE - Static variable in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
Minimum number of snake.
- MINIMUN_SNAKE - Static variable in class ai.nettogrof.battlesnake.treesearch.search.squad.SquadNode
-
Minimun number of snake for Squad Mode.
- minusbuffer - Variable in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
Int value that will be subtract from timeout, it's a buffer define in the config file, to take latency/lag into account
- move(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
This method will be call on each move request receive by BattleSnake, so all snakes must implement it, and add game logic in it
- move(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
This method will be call on each move request receive by BattleSnake
- move(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.BasicSnake
-
This method will be call on each move request receive by BattleSnake
- move(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
This method will be call on each move request receive by BattleSnake
- move(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.Snake.Handler
-
/move is called by the engine for each turn the snake has.
- moveSnake(SnakeInfo, AbstractNode, List<SnakeInfo>, List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Generate move of a snake
- MOVESTR - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- multiThread - Variable in class ai.nettogrof.battlesnake.snakes.AbstractMultiThreadSnakeAI
-
Boolean if multithread is use by the snake value define by the config file
- multiThreadtreeSearch(AbstractNode, Long, GameRuleset) - Method in class ai.nettogrof.battlesnake.snakes.AbstractMultiThreadSnakeAI
-
Execute the multiThread tree search
N
- name - Variable in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Name of the snake
- NAME - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- NODECOUNT - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
Constant Field name
- nodeTotalCount - Variable in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
Number of node analyze during the whole game
- NodeUtil - Class in ai.nettogrof.battlesnake.treesearch.node
-
This NodeUtil class
- NodeUtil() - Constructor for class ai.nettogrof.battlesnake.treesearch.node.NodeUtil
-
basic/ useless constructor
O
- ONE - Static variable in class ai.nettogrof.battlesnake.snakes.Snake
-
Static value.
- ONE - Static variable in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Single posssible move
P
- ping() - Method in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Method that was use in API v0 to check if the bots was up.
- ping() - Method in class ai.nettogrof.battlesnake.snakes.Snake.Handler
-
/ping is called by the play application during the tournament or on play.battlesnake.io to make sure your snake is still alive.
- port - Static variable in class ai.nettogrof.battlesnake.snakes.Snake
-
Port number define by config file or program parameter.
- position - Variable in class ai.nettogrof.battlesnake.info.FoodInfo
-
Arraylist (int) of all food position (based on square formula)
- possibleMove - Variable in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Number of possible move of our snake
- process(Request, Response) - Method in class ai.nettogrof.battlesnake.snakes.Snake.Handler
-
Generic processor that prints out the request and response from the methods.
R
- RegularSearch - Class in ai.nettogrof.battlesnake.treesearch.search.standard
-
This regular search was used during the Winter classic 2020 by my Beta and Gamma snake It start by search the smallest branch and expand it (100 times) then : 1.
- RegularSearch() - Constructor for class ai.nettogrof.battlesnake.treesearch.search.standard.RegularSearch
-
Basic constructor
- RegularSearch(AbstractNode, int, int) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.standard.RegularSearch
-
Constructor used to expand the tree once.
- RegularSearch(AbstractNode, int, int, long, int) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.standard.RegularSearch
-
Constructor used to expand to do the tree search.
- removeHazardZone(int[][]) - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.AbstractRoyaleNode
-
Remove hazard from the control Area because there's no value to control hazard area
- RIGHT - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- rightNeck - Static variable in class ai.nettogrof.battlesnake.treesearch.search.fun.LimitedMoveRoyaleSearch
-
Prevent right move if head - neck equals that amount
- RightSnake - Class in ai.nettogrof.battlesnake.snakes
-
Right snake.
- RightSnake(String) - Constructor for class ai.nettogrof.battlesnake.snakes.RightSnake
-
Constructor with the gameid,
- root - Variable in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Root node for the search
- root() - Method in class ai.nettogrof.battlesnake.snakes.Snake.Handler
-
/ is called by the play application during the tournament or on play.battlesnake.io to make sure your snake is still alive.
- ROYALE - Static variable in class ai.nettogrof.battlesnake.info.GameRuleset
-
Constant Field name
- RoyaleDuelNode - Class in ai.nettogrof.battlesnake.treesearch.search.royale
-
This Royale Duel node class must be use when only 2 snakes left, and in royale mode.
- RoyaleDuelNode(List<SnakeInfo>, FoodInfo, AbstractHazard, BoardInfo) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.royale.RoyaleDuelNode
-
Constructor, set the information and evaluate/ set score directly
- RoyaleFourNode - Class in ai.nettogrof.battlesnake.treesearch.search.royale
-
This Royale FourNode class must be use when only 3 or 4 snakes left, and in royale mode.
- RoyaleFourNode(List<SnakeInfo>, FoodInfo, AbstractHazard, BoardInfo) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.royale.RoyaleFourNode
-
Constructor, set the information and evaluate/ set score directly
- RoyaleSearch - Class in ai.nettogrof.battlesnake.treesearch.search.royale
-
This regular search was used during the Spring 2021 league Nessegrev-Beta snake It start by search the smallest branch and expand it (12 times) then : 1.
- RoyaleSearch(AbstractNode, int, int, long, int, GameRuleset) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.royale.RoyaleSearch
-
Constructor used to expand to do the tree search.
- rules - Variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Game rulesset
- rules - Variable in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Object containing Game Rules
- run() - Method in class ai.nettogrof.battlesnake.treesearch.search.constrictor.ConstrictorSearch
- run() - Method in class ai.nettogrof.battlesnake.treesearch.search.fun.LimitedMoveRoyaleSearch
- run() - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.RoyaleSearch
- run() - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.wrapped.WrappedRoyaleSearch
- run() - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.SquadSearch
- run() - Method in class ai.nettogrof.battlesnake.treesearch.search.standard.MctsSearch
- run() - Method in class ai.nettogrof.battlesnake.treesearch.search.standard.RegularSearch
S
- score - Variable in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Array of score of each snake
- scoreRatio - Variable in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Current scoreRatio
- searchType - Variable in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
What kind of search that gonna be use
- selfDestination(int, List<SnakeInfo>, SnakeInfo, AbstractNode, List<SnakeInfo>) - Method in class ai.nettogrof.battlesnake.treesearch.search.fun.LimitedMoveRoyaleSearch
-
Generate all move possible for our snake, and check the snake direction to prevent some move.
- setBorderScore(float) - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
Set Border score
- setCpuLimit(int) - Method in class ai.nettogrof.battlesnake.snakes.AbstractMultiThreadSnakeAI
-
Set the CPU limit count
- setExp(boolean) - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
- setFileConfig(String) - Method in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Set the file config filename
- setFoodInfo(JsonNode) - Method in class ai.nettogrof.battlesnake.info.FoodInfo
-
Take the json field food and convert it into the arraylist position
- setFoodValue(int) - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
Set Food Value
- setHazardScore(float) - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
set Hazard score for evalution
- setInfo(JsonNode) - Method in class ai.nettogrof.battlesnake.info.hazard.AbstractHazard
-
Take the json field food and convert it into the arraylist hazard
- setInfo(JsonNode) - Method in class ai.nettogrof.battlesnake.info.hazard.HazardSquare
-
Take the json field food and convert it into the arraylist hazard
- setJustTurn() - Static method in class ai.nettogrof.battlesnake.treesearch.search.fun.LimitedMoveRoyaleSearch
-
Set config for Just Turn snake (never go straight)
- setLeftOnly() - Static method in class ai.nettogrof.battlesnake.treesearch.search.fun.LimitedMoveRoyaleSearch
-
Set config for Left snake (never turn right)
- setMCTS(float) - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
Set mcts bias
- setMultiThread(boolean) - Method in class ai.nettogrof.battlesnake.snakes.AbstractMultiThreadSnakeAI
-
Set Multithread flag
- setPossibleMove(int) - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Set possible move
- setProperties() - Method in class ai.nettogrof.battlesnake.snakes.AbstractMultiThreadSnakeAI
-
Set the properties to the snake object
- setProperties() - Method in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
Set the properties to the snake object
- setRightOnly() - Static method in class ai.nettogrof.battlesnake.treesearch.search.fun.LimitedMoveRoyaleSearch
-
Set config for Right snake (never turn left)
- setScore() - Method in class ai.nettogrof.battlesnake.treesearch.search.constrictor.ConstrictorNode
-
Sets the node score
- setScore() - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.RoyaleDuelNode
-
Sets the node score
- setScore() - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.RoyaleFourNode
-
Sets the node score
- setScore() - Method in class ai.nettogrof.battlesnake.treesearch.search.royale.wrapped.WrappedRoyaleNode
-
Sets the node score
- setScore() - Method in class ai.nettogrof.battlesnake.treesearch.search.standard.DuelNode
-
Sets the node score
- setScore() - Method in class ai.nettogrof.battlesnake.treesearch.search.standard.FourNode
-
Sets the node score
- setScore() - Method in class ai.nettogrof.battlesnake.treesearch.search.standard.ManyNode
-
Sets the node score
- setSizeAdvantage(float) - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
Set the size advantage
- setSquadScore() - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.SquadNode
-
Sets the node score
- setStopExpandLimit(float) - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
set stop expand list
- setTailValueArea(int) - Static method in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
Set tail value
- setTimeout(int) - Method in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
Set the move timeout
- setWinnerMaxScore() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractEvaluationNode
-
Set Max score to winner snakes.
- sharedElimination - Variable in class ai.nettogrof.battlesnake.info.SquadRuleset
- sharedHealth - Variable in class ai.nettogrof.battlesnake.info.SquadRuleset
- sharedLength - Variable in class ai.nettogrof.battlesnake.info.SquadRuleset
- SHOUT - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- SINGLE_SNAKE - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- SINGLE_SNAKE - Static variable in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
Current API version used by snakes
- singleThreadTreeSearch(AbstractNode, Long, GameRuleset) - Method in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
Execute the single Thread tree search
- sizeAdvantage - Static variable in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
score to add/subtract in snake length comparison
- skrinkSpeed - Variable in class ai.nettogrof.battlesnake.info.GameRuleset
- Snake - Class in ai.nettogrof.battlesnake.snakes
-
Snake server that deals with requests from the snake engine.
- Snake() - Constructor for class ai.nettogrof.battlesnake.snakes.Snake
-
Unused constrictor
- SNAKE_BODY - Static variable in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
Value of a snake body
- Snake.Handler - Class in ai.nettogrof.battlesnake.snakes
-
Handler class for dealing with the routes set up in the main method.
- snakeBody - Variable in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Arraylist of the Snake Body.
- SnakeGeneticConstants - Class in ai.nettogrof.battlesnake.snakes.common
-
This class keep some Evaluation constant value
- SnakeGeneticConstants() - Constructor for class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
Private constructor because this is a utility class
- SnakeInfo - Class in ai.nettogrof.battlesnake.info
-
Data related to a Snake in non-squad modes
- SnakeInfo() - Constructor for class ai.nettogrof.battlesnake.info.SnakeInfo
-
Basic constructor with a empty body.
- SnakeInfo(SnakeInfo) - Constructor for class ai.nettogrof.battlesnake.info.SnakeInfo
-
copy constructor .
- SnakeInfo(SnakeInfo, int, boolean) - Constructor for class ai.nettogrof.battlesnake.info.SnakeInfo
-
Constructor with all informations except hazard ( use in non-royale mode)
- SnakeInfo(SnakeInfo, int, boolean, boolean, GameRuleset) - Constructor for class ai.nettogrof.battlesnake.info.SnakeInfo
-
Constructor with all informations
- SnakeInfo(JsonNode) - Constructor for class ai.nettogrof.battlesnake.info.SnakeInfo
-
Constructor with the Json field
- snakes - Variable in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
List of snakes
- SNAKES - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- snakeType - Static variable in class ai.nettogrof.battlesnake.snakes.Snake
-
SnakeType define by program parameter Default: undefined
- space - Variable in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
Board of empty space
- SPLIT_AREA - Static variable in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
Value for square controlled by two snakes
- squad - Variable in class ai.nettogrof.battlesnake.info.SnakeInfo
-
Name of the squad of the current snake
- SQUAD - Static variable in class ai.nettogrof.battlesnake.info.GameRuleset
-
Constant Field name
- SQUAD - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- SquadNode - Class in ai.nettogrof.battlesnake.treesearch.search.squad
-
This Squad node class must be in squad mode
- SquadNode(List<SnakeInfo>, FoodInfo, BoardInfo) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.squad.SquadNode
-
Constructor, set the information and evaluate/ set score directly
- squadRules - Variable in class ai.nettogrof.battlesnake.info.GameRuleset
- SquadRuleset - Class in ai.nettogrof.battlesnake.info
-
SquadRuleset is the class that contain all the informations and related methods to Squad ruleset
- SquadRuleset(JsonNode) - Constructor for class ai.nettogrof.battlesnake.info.SquadRuleset
- SquadSearch - Class in ai.nettogrof.battlesnake.treesearch.search.squad
-
This squad search not used yet
- SquadSearch() - Constructor for class ai.nettogrof.battlesnake.treesearch.search.squad.SquadSearch
-
Basic constructor
- SquadSearch(AbstractNode, int, int) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.squad.SquadSearch
-
Constructor used to expand the tree once.
- SquadSearch(AbstractNode, int, int, long, int, GameRuleset) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.squad.SquadSearch
-
Constructor used to expand to do the tree search.
- STANDARD - Static variable in class ai.nettogrof.battlesnake.info.GameRuleset
-
Constant Field name
- start(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
This method was used in API v0 to retrieve snake info, but in API v1 the method is call but Battlesnake doesn't need a response.
- start(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.ExpertSnake
-
This method was used in API v0 to retrieve snake info, but in API v1 the method is call but Battlesnake doesn't need a response.
- start(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.FloodFillSnake
-
/** Function when receive the start request ( API version 0 ) Shouldn't be used anymore
- start(JsonNode) - Method in class ai.nettogrof.battlesnake.snakes.Snake.Handler
-
/start is called by the engine when a game is first run.
- startThread(AbstractSearch) - Method in class ai.nettogrof.battlesnake.snakes.AbstractMultiThreadSnakeAI
-
Start the thread search
- startTime - Variable in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Starting time for the search in millisecond
- stopExpandLimit - Static variable in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
Stop expand a node when the score ratio is higher than that value
- stopSearching() - Method in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
This method is used to stop the search
T
- tailValueArea - Static variable in class ai.nettogrof.battlesnake.snakes.common.SnakeGeneticConstants
-
Value if a tail is found in the controlled AREA
- timeout - Variable in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
Int value use to check how much time does the snake have do to tree-search, value define by json field
- timeout - Variable in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Time allowed for the search
- timeTotal - Variable in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
Total of time used to compute during the whole game
- treeSearch(AbstractNode, Long, GameRuleset) - Method in class ai.nettogrof.battlesnake.snakes.AbstractMultiThreadSnakeAI
-
Execute the tree search
- treeSearch(AbstractNode, Long, GameRuleset) - Method in class ai.nettogrof.battlesnake.snakes.AbstractTreeSearchSnakeAI
-
Execute the tree search
- TURN - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- TWO_SNAKE - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
U
- updateChildCount() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Update the child count
- updateFullListNode(List<AbstractNode>) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractBestFirstSearch
-
This method updateScore from each node
- updateListNode(List<AbstractNode>) - Method in class ai.nettogrof.battlesnake.treesearch.AbstractBestFirstSearch
-
This method get a branch, update score starting from the leaf.
- updateScore() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractDecisionNode
-
Update this node score
- updateScore() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Update this node score
- updateScoreMultiplePossibleMove() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractDecisionNode
-
Update score if more than 1 possible move
- updateScoreRatio() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractNode
-
Update the score ratio
- updateScoreRatio() - Method in class ai.nettogrof.battlesnake.treesearch.search.squad.SquadNode
-
Update the score ratio
- updateScoreSinglePossibleMove() - Method in class ai.nettogrof.battlesnake.treesearch.node.AbstractDecisionNode
-
Update score if just one possible move.
- upNeck - Static variable in class ai.nettogrof.battlesnake.treesearch.search.fun.LimitedMoveRoyaleSearch
-
Prevent up move if head - neck equals that amount
- UPWARD - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
W
- width - Variable in class ai.nettogrof.battlesnake.info.BoardInfo
-
Board width
- width - Variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Board width
- width - Variable in class ai.nettogrof.battlesnake.treesearch.AbstractSearch
-
Board width
- WIDTH_FIELD - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
- WIN_SHOUT - Static variable in class ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
-
When a snake is in winning position, the snake gonna shout one of those line randomly
- winning - Variable in class ai.nettogrof.battlesnake.snakes.AbstractSearchSnakeAI
-
String that gonna be shout by the snake if snake is in a winning position.
- WRAPPED - Static variable in class ai.nettogrof.battlesnake.info.GameRuleset
-
Constant Field name
- WrappedRoyaleNode - Class in ai.nettogrof.battlesnake.treesearch.search.royale.wrapped
-
This Royale FourNode class must be use when only 3 or 4 snakes left, and in royale mode.
- WrappedRoyaleNode(List<SnakeInfo>, FoodInfo, AbstractHazard, BoardInfo) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.royale.wrapped.WrappedRoyaleNode
-
Constructor, set the information and evaluate/ set score directly
- WrappedRoyaleSearch - Class in ai.nettogrof.battlesnake.treesearch.search.royale.wrapped
-
This regular search was used during the Spring 2022 league Nessegrev-Beta snake for the wrapped mode It start by search the smallest branch and expand it (12 times) then : 1.
- WrappedRoyaleSearch(AbstractNode, int, int, long, int, GameRuleset) - Constructor for class ai.nettogrof.battlesnake.treesearch.search.royale.wrapped.WrappedRoyaleSearch
-
Constructor used to expand to do the tree search.
Y
- YOU - Static variable in class ai.nettogrof.battlesnake.snakes.AbstractSnakeAI
-
Constant Field name
All Classes All Packages