projects
/
stockfish
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use templetized operations for Piece
[stockfish]
/
src
/
color.h
diff --git
a/src/color.h
b/src/color.h
index 50901ef30c3d1c52b99f6eef37d51819b1be487b..c946a548e2ebedded0618845cf3a81bf0f0fac8a 100644
(file)
--- a/
src/color.h
+++ b/
src/color.h
@@
-32,13
+32,16
@@
enum Color {
COLOR_NONE
};
+enum SquareColor {
+ DARK,
+ LIGHT
+};
+
////
//// Inline functions
////
-inline void operator++ (Color &c, int) { c = Color(int(c) + 1); }
-
inline Color opposite_color(Color c) {
return Color(int(c) ^ 1);
}