Chess Game
1.1.0
A full chess game for Unity
|
Most people probably have no clue what this 'En Passant' move is - if you don't then google it, its a legal pawn move in chess, in which a pawn captures a pawn next to it that has just performed its double move, while move diagonally forward. More...
Inherits cgSimpleMove.
Public Member Functions | |
cgEnPassantMove (byte fromp, byte tomp, sbyte posval, byte attackSquare) | |
override cgSimpleMove | duplicate () |
Duplicate this move. Used when duplicating a board which has had moves performed on it, said moves are also duplicated. More... | |
![]() | |
cgSimpleMove (byte fromp, byte top, sbyte posVal=(sbyte) 0) | |
A simple move, moving a single piece to another square. More... | |
Public Attributes | |
byte | attackingSquare |
![]() | |
byte | from |
The square being departed from. More... | |
byte | to |
The square being arrived at. More... | |
sbyte | capturedType = 0 |
The type of the piece being captured. More... | |
sbyte | positionalVal |
The positional value, used by the AlphaBeta Search algorithm, the higher this value the earlier the algorithm examines it - this does not mean the AI is more likely to pick it. More... | |
int | val |
The actual value of the total board after this move has been performed based on material, pattern and positional values. Calculated by cgBoard.Evaluate More... | |
cgSimpleMove | bestResponse |
Used by the engine for debugging purposes. More... | |
bool | queened |
Did this move lead to a pawn promoting to a queen(queening)? More... | |
Most people probably have no clue what this 'En Passant' move is - if you don't then google it, its a legal pawn move in chess, in which a pawn captures a pawn next to it that has just performed its double move, while move diagonally forward.
|
virtual |
Duplicate this move. Used when duplicating a board which has had moves performed on it, said moves are also duplicated.
Reimplemented from cgSimpleMove.