[Piece] Implement PieceColor ! operator
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,3 +2,5 @@
|
|||||||
/build*/
|
/build*/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
uci-log.txt
|
uci-log.txt
|
||||||
|
cmake-build-debug
|
||||||
|
cmake-build-release
|
||||||
|
@@ -33,6 +33,5 @@ std::ostream& operator<<(std::ostream& os, const Piece& piece) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PieceColor operator!(PieceColor color) {
|
PieceColor operator!(PieceColor color) {
|
||||||
(void)color;
|
return static_cast<PieceColor>((static_cast<int>(color) + 1) % 2);
|
||||||
return PieceColor::White;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user