Class BattleSnakeConstants
- java.lang.Object
 - 
- ai.nettogrof.battlesnake.snakes.common.BattleSnakeConstants
 
 
- 
public final class BattleSnakeConstants extends Object
This class keep some constant value- Version:
 - Spring 2021
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intAPI_V1Current API version used by snakesstatic floatBASIC_SCOREBasic score assign to all snakes to avoid division by 0static intEMPTY_AREAValue for square uncontrolledstatic floatINVALID_SCOREInvalid score used for creating a payoff matrixprivate static String[]LOSE_SHOUTWhen a snake is in losing position, the snake gonna shout one of those line randomly.static intMAX_HEALTHMax Healthstatic floatMAX_SCOREMax score for a nodestatic intMINIMUN_SNAKEMinimum number of snake.static intSINGLE_SNAKECurrent API version used by snakesstatic intSNAKE_BODYValue of a snake bodystatic intSPLIT_AREAValue for square controlled by two snakesprivate static String[]WIN_SHOUTWhen a snake is in winning position, the snake gonna shout one of those line randomly 
- 
Constructor Summary
Constructors Modifier Constructor Description privateBattleSnakeConstants()Sole constructor. 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetLostShout()Get losing shoutstatic StringgetWinShout()Get Winning shout 
 - 
 
- 
- 
Field Detail
- 
MAX_HEALTH
public static final int MAX_HEALTH
Max Health- See Also:
 - Constant Field Values
 
 
- 
MAX_SCORE
public static final float MAX_SCORE
Max score for a node- See Also:
 - Constant Field Values
 
 
- 
INVALID_SCORE
public static final float INVALID_SCORE
Invalid score used for creating a payoff matrix- See Also:
 - Constant Field Values
 
 
- 
LOSE_SHOUT
private static final String[] LOSE_SHOUT
When a snake is in losing position, the snake gonna shout one of those line randomly. 
- 
WIN_SHOUT
private static final String[] WIN_SHOUT
When a snake is in winning position, the snake gonna shout one of those line randomly 
- 
BASIC_SCORE
public static final float BASIC_SCORE
Basic score assign to all snakes to avoid division by 0- See Also:
 - Constant Field Values
 
 
- 
SPLIT_AREA
public static final int SPLIT_AREA
Value for square controlled by two snakes- See Also:
 - Constant Field Values
 
 
- 
EMPTY_AREA
public static final int EMPTY_AREA
Value for square uncontrolled- See Also:
 - Constant Field Values
 
 
- 
SNAKE_BODY
public static final int SNAKE_BODY
Value of a snake body- See Also:
 - Constant Field Values
 
 
- 
MINIMUN_SNAKE
public static final int MINIMUN_SNAKE
Minimum number of snake. If number of snake smaller than this value, the game end- See Also:
 - Constant Field Values
 
 
- 
API_V1
public static final int API_V1
Current API version used by snakes- See Also:
 - Constant Field Values
 
 
- 
SINGLE_SNAKE
public static final int SINGLE_SNAKE
Current API version used by snakes- See Also:
 - Constant Field Values
 
 
 - 
 
 -