Package b2p.state.bitboard.bitset
Enum BitSetPosition
- java.lang.Object
-
- java.lang.Enum<BitSetPosition>
-
- b2p.state.bitboard.bitset.BitSetPosition
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BitSetPosition>
public enum BitSetPosition extends java.lang.Enum<BitSetPosition>
This Enumerative represents all the positions on the board- Author:
- Alessandro Buldini, Alessandro Pomponio, Federico Zanini
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A1
A2
A3
A4
A5
A6
A7
A8
A9
B1
B2
B3
B4
B5
B6
B7
B8
B9
C1
C2
C3
C4
C5
C6
C7
C8
C9
D1
D2
D3
D4
D5
D6
D7
D8
D9
E1
E2
E3
E4
E5
E6
E7
E8
E9
F1
F2
F3
F4
F5
F6
F7
F8
F9
G1
G2
G3
G4
G5
G6
G7
G8
G9
H1
H2
H3
H4
H5
H6
H7
H8
H9
I1
I2
I3
I4
I5
I6
I7
I8
I9
-
Field Summary
Fields Modifier and Type Field Description static int[]
blackPawnCellWeight
Array of ints representing the static weights of every cell for a generic black pawnstatic B2PBitSet
blackStrategicCells
B2PBitSet
representing the strategic cells for the black playerstatic int
BOTTOM_LEFT_QUADRANT
Integer representing the bottom left quadrantstatic int
BOTTOM_RIGHT_QUADRANT
Integer representing the bottom right quadrantstatic B2PBitSet
camps
B2PBitSet
representing the camps cellsstatic B2PBitSet
castle
B2PBitSet
representing the castle cellstatic B2PBitSet
escape
B2PBitSet
representing the escapes cellsstatic java.util.HashSet<java.lang.String>
escapeHashSet
Set containing the king's escapesstatic int[]
kingBottomLeftWeight
Array of ints representing the dynamic changes to cells weights depending on king positionstatic int[]
kingBottomRightWeight
Array of ints representing the dynamic changes to cells weights depending on king positionstatic int[][]
kingBuff
Matrix of ints containing the possible dynamic changes to cell weights depending on king positionstatic B2PBitSet
kingInD5Surrounded
B2PBitSet
representing the D5 capturestatic B2PBitSet
kingInE4Surrounded
B2PBitSet
representing the E4 capturestatic B2PBitSet
kingInE6Surrounded
B2PBitSet
representing the E6 capturestatic B2PBitSet
kingInF5Surrounded
B2PBitSet
representing the F5 capturestatic B2PBitSet
kingSurrounded
B2PBitSet
representing the surrounding cells for the kingstatic int[]
kingTopLeftWeight
Array of ints representing the dynamic changes to cells weights depending on king positionstatic int[]
kingTopRightWeight
Array of ints representing the dynamic changes to cells weights depending on king positionstatic B2PBitSet
obstacles
B2PBitSet
representing the obstacles cellsstatic B2PBitSet
specialKingCells
B2PBitSet
representing the special king cellsstatic int
TOP_LEFT_QUADRANT
Integer representing the top left quadrantstatic int
TOP_RIGHT_QUADRANT
Integer representing the top right quadrantstatic B2PBitSet
whiteEarlyGameStrategicCells
B2PBitSet
representing the strategic cells for the white playerstatic int[]
whitePawnCellWeight
Array of ints representing the static weights of every cell for a generic white pawn
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Accessor method to retrieve the value of the private field namestatic BitSetPosition
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BitSetPosition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
A1
public static final BitSetPosition A1
-
B1
public static final BitSetPosition B1
-
C1
public static final BitSetPosition C1
-
D1
public static final BitSetPosition D1
-
E1
public static final BitSetPosition E1
-
F1
public static final BitSetPosition F1
-
G1
public static final BitSetPosition G1
-
H1
public static final BitSetPosition H1
-
I1
public static final BitSetPosition I1
-
A2
public static final BitSetPosition A2
-
B2
public static final BitSetPosition B2
-
C2
public static final BitSetPosition C2
-
D2
public static final BitSetPosition D2
-
E2
public static final BitSetPosition E2
-
F2
public static final BitSetPosition F2
-
G2
public static final BitSetPosition G2
-
H2
public static final BitSetPosition H2
-
I2
public static final BitSetPosition I2
-
A3
public static final BitSetPosition A3
-
B3
public static final BitSetPosition B3
-
C3
public static final BitSetPosition C3
-
D3
public static final BitSetPosition D3
-
E3
public static final BitSetPosition E3
-
F3
public static final BitSetPosition F3
-
G3
public static final BitSetPosition G3
-
H3
public static final BitSetPosition H3
-
I3
public static final BitSetPosition I3
-
A4
public static final BitSetPosition A4
-
B4
public static final BitSetPosition B4
-
C4
public static final BitSetPosition C4
-
D4
public static final BitSetPosition D4
-
E4
public static final BitSetPosition E4
-
F4
public static final BitSetPosition F4
-
G4
public static final BitSetPosition G4
-
H4
public static final BitSetPosition H4
-
I4
public static final BitSetPosition I4
-
A5
public static final BitSetPosition A5
-
B5
public static final BitSetPosition B5
-
C5
public static final BitSetPosition C5
-
D5
public static final BitSetPosition D5
-
E5
public static final BitSetPosition E5
-
F5
public static final BitSetPosition F5
-
G5
public static final BitSetPosition G5
-
H5
public static final BitSetPosition H5
-
I5
public static final BitSetPosition I5
-
A6
public static final BitSetPosition A6
-
B6
public static final BitSetPosition B6
-
C6
public static final BitSetPosition C6
-
D6
public static final BitSetPosition D6
-
E6
public static final BitSetPosition E6
-
F6
public static final BitSetPosition F6
-
G6
public static final BitSetPosition G6
-
H6
public static final BitSetPosition H6
-
I6
public static final BitSetPosition I6
-
A7
public static final BitSetPosition A7
-
B7
public static final BitSetPosition B7
-
C7
public static final BitSetPosition C7
-
D7
public static final BitSetPosition D7
-
E7
public static final BitSetPosition E7
-
F7
public static final BitSetPosition F7
-
G7
public static final BitSetPosition G7
-
H7
public static final BitSetPosition H7
-
I7
public static final BitSetPosition I7
-
A8
public static final BitSetPosition A8
-
B8
public static final BitSetPosition B8
-
C8
public static final BitSetPosition C8
-
D8
public static final BitSetPosition D8
-
E8
public static final BitSetPosition E8
-
F8
public static final BitSetPosition F8
-
G8
public static final BitSetPosition G8
-
H8
public static final BitSetPosition H8
-
I8
public static final BitSetPosition I8
-
A9
public static final BitSetPosition A9
-
B9
public static final BitSetPosition B9
-
C9
public static final BitSetPosition C9
-
D9
public static final BitSetPosition D9
-
E9
public static final BitSetPosition E9
-
F9
public static final BitSetPosition F9
-
G9
public static final BitSetPosition G9
-
H9
public static final BitSetPosition H9
-
I9
public static final BitSetPosition I9
-
-
Field Detail
-
whitePawnCellWeight
public static final int[] whitePawnCellWeight
Array of ints representing the static weights of every cell for a generic white pawn
-
blackPawnCellWeight
public static final int[] blackPawnCellWeight
Array of ints representing the static weights of every cell for a generic black pawn
-
kingTopLeftWeight
public static final int[] kingTopLeftWeight
Array of ints representing the dynamic changes to cells weights depending on king position
-
kingTopRightWeight
public static final int[] kingTopRightWeight
Array of ints representing the dynamic changes to cells weights depending on king position
-
kingBottomLeftWeight
public static final int[] kingBottomLeftWeight
Array of ints representing the dynamic changes to cells weights depending on king position
-
kingBottomRightWeight
public static final int[] kingBottomRightWeight
Array of ints representing the dynamic changes to cells weights depending on king position
-
kingBuff
public static final int[][] kingBuff
Matrix of ints containing the possible dynamic changes to cell weights depending on king position
-
camps
public static final B2PBitSet camps
B2PBitSet
representing the camps cells- See Also:
B2PBitSet
-
escape
public static final B2PBitSet escape
B2PBitSet
representing the escapes cells- See Also:
B2PBitSet
-
castle
public static final B2PBitSet castle
B2PBitSet
representing the castle cell- See Also:
B2PBitSet
-
obstacles
public static final B2PBitSet obstacles
B2PBitSet
representing the obstacles cells- See Also:
B2PBitSet
-
specialKingCells
public static final B2PBitSet specialKingCells
B2PBitSet
representing the special king cells- See Also:
B2PBitSet
-
kingSurrounded
public static final B2PBitSet kingSurrounded
B2PBitSet
representing the surrounding cells for the king- See Also:
B2PBitSet
-
kingInE4Surrounded
public static final B2PBitSet kingInE4Surrounded
B2PBitSet
representing the E4 capture- See Also:
B2PBitSet
-
kingInD5Surrounded
public static final B2PBitSet kingInD5Surrounded
B2PBitSet
representing the D5 capture- See Also:
B2PBitSet
-
kingInE6Surrounded
public static final B2PBitSet kingInE6Surrounded
B2PBitSet
representing the E6 capture- See Also:
B2PBitSet
-
kingInF5Surrounded
public static final B2PBitSet kingInF5Surrounded
B2PBitSet
representing the F5 capture- See Also:
B2PBitSet
-
blackStrategicCells
public static final B2PBitSet blackStrategicCells
B2PBitSet
representing the strategic cells for the black player- See Also:
B2PBitSet
-
whiteEarlyGameStrategicCells
public static final B2PBitSet whiteEarlyGameStrategicCells
B2PBitSet
representing the strategic cells for the white player- See Also:
B2PBitSet
-
escapeHashSet
public static final java.util.HashSet<java.lang.String> escapeHashSet
Set containing the king's escapes- See Also:
HashSet
-
TOP_LEFT_QUADRANT
public static final int TOP_LEFT_QUADRANT
Integer representing the top left quadrant- See Also:
- Constant Field Values
-
TOP_RIGHT_QUADRANT
public static final int TOP_RIGHT_QUADRANT
Integer representing the top right quadrant- See Also:
- Constant Field Values
-
BOTTOM_LEFT_QUADRANT
public static final int BOTTOM_LEFT_QUADRANT
Integer representing the bottom left quadrant- See Also:
- Constant Field Values
-
BOTTOM_RIGHT_QUADRANT
public static final int BOTTOM_RIGHT_QUADRANT
Integer representing the bottom right quadrant- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static BitSetPosition[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BitSetPosition c : BitSetPosition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BitSetPosition valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
Accessor method to retrieve the value of the private field name- Returns:
- the name value
-
-