|
UCILoader 1.1.2
Small C++ library that allows user to connect to a chess engines via UCI protocol.
|
Standard chess move representation. More...
#include <StandardChess.h>
Public Member Functions | |
| bool | operator== (const StandardChessMove &other) const |
| Equality operator for unit testing. | |
| StandardChessMove & | operator= (const StandardChessMove &other) |
| Assignment operator. | |
Public Attributes | |
| unsigned char | from |
| Source square (0-63) | |
| unsigned char | to |
| Destination square (0-63) | |
| PromotionTarget | promoteTo |
| Promotion target (None for non-promotions) | |
Standard chess move representation.
Represents a single move in standard chess using:
Square Numbering: Squares are numbered 0-63 with the formula:
where rank is 1-8 and file is 'a'-'h'.
Examples:
|
inline |
Assignment operator.
| other | The move to assign from |
|
inline |
Equality operator for unit testing.
| other | The move to compare with |