Chess Game
1.1.0
A full chess game for Unity
|
The following values dictate the playing and searching style of the engine greatly. More...
Public Attributes | |
const int | Value_Pawn = 1000 |
The value of a pawn, used by the engine to evalute board states. More... | |
const int | Value_Rook = 5000 |
The value of a rook, used by the engine to evalute board states. More... | |
const int | Value_Knight = 3000 |
The value of a knight, used by the engine to evalute board states. More... | |
const int | Value_Bishop = 3150 |
The value of a bishop, used by the engine to evalute board states. There seems to be a general consensus that the bishop, especially in the lategame, is slightly better than the knight. More... | |
const int | Value_Queen = 9000 |
The value of a queen, used by the engine to evalute board states. More... | |
const int | Value_King = 50000 |
The value of a king, used by the engine to evalute board states. This value should always be arbitrarily high. More... | |
const short | Value_CastlingShortRights = 22 |
How much the right to castle short is valued at. More... | |
const short | Value_CastlingLongRights = 15 |
How much the right to castle long is valued at More... | |
const sbyte | Value_Castle = 85 |
How much having castled is valued at. More... | |
const int | Value_BishopPairBonus = 200 |
A bonus value given for having both bishops. Leading the AI to be less likely to exchange say a bishop for a knight. More... | |
const int | Value_RookPairBonus = 200 |
A bonus value for having both rooks. Leading the AI to be less likely to exchange a rook for say a bishop + 2 pawns, which is valued at 5 same as the rook. More... | |
const sbyte | AlphaBeta_Weight_Capture = sbyte.MaxValue |
const sbyte | AlphaBeta_Weight_LongCastle = 30 |
const sbyte | AlphaBeta_Weight_ShortCastle = 30 |
const sbyte | AlphaBeta_Weight_Check = 50 |
const sbyte | AlphaBeta_Strong_Delineation = 20 |
Static Public Attributes | |
static sbyte [] | Positions_Bishop |
The positional value of the bishop on each square. Notice the high value for a7 a2 g7 and g2, this means fianchettos are valued high. More... | |
static sbyte [] | Positions_Rook |
The positional value of the rook on each square. More... | |
static sbyte [] | Positions_Knight |
The positional value of the knight on each square. Note: the knight is great in the center. More... | |
static sbyte [] | Positions_Pawn |
The positional value of the pawn on each square. Note: a strong pawn center is valued high. More... | |
static sbyte [] | Positions_Queen |
The positional value of the queen on each square. More... | |
The following values dictate the playing and searching style of the engine greatly.
|
static |
The positional value of the bishop on each square. Notice the high value for a7 a2 g7 and g2, this means fianchettos are valued high.
|
static |
The positional value of the knight on each square. Note: the knight is great in the center.
|
static |
The positional value of the pawn on each square. Note: a strong pawn center is valued high.
|
static |
The positional value of the queen on each square.
|
static |
The positional value of the rook on each square.
const int cgValueModifiers.Value_Bishop = 3150 |
The value of a bishop, used by the engine to evalute board states. There seems to be a general consensus that the bishop, especially in the lategame, is slightly better than the knight.
const int cgValueModifiers.Value_BishopPairBonus = 200 |
A bonus value given for having both bishops. Leading the AI to be less likely to exchange say a bishop for a knight.
const sbyte cgValueModifiers.Value_Castle = 85 |
How much having castled is valued at.
const short cgValueModifiers.Value_CastlingLongRights = 15 |
How much the right to castle long is valued at
const short cgValueModifiers.Value_CastlingShortRights = 22 |
How much the right to castle short is valued at.
const int cgValueModifiers.Value_King = 50000 |
The value of a king, used by the engine to evalute board states. This value should always be arbitrarily high.
const int cgValueModifiers.Value_Knight = 3000 |
The value of a knight, used by the engine to evalute board states.
const int cgValueModifiers.Value_Pawn = 1000 |
The value of a pawn, used by the engine to evalute board states.
const int cgValueModifiers.Value_Queen = 9000 |
The value of a queen, used by the engine to evalute board states.
const int cgValueModifiers.Value_Rook = 5000 |
The value of a rook, used by the engine to evalute board states.
const int cgValueModifiers.Value_RookPairBonus = 200 |
A bonus value for having both rooks. Leading the AI to be less likely to exchange a rook for say a bishop + 2 pawns, which is valued at 5 same as the rook.