]> git.sesse.net Git - stockfish/blobdiff - src/color.h
Use templetized operations for Piece
[stockfish] / src / color.h
index 50901ef30c3d1c52b99f6eef37d51819b1be487b..c946a548e2ebedded0618845cf3a81bf0f0fac8a 100644 (file)
@@ -32,13 +32,16 @@ enum Color {
   COLOR_NONE
 };
 
   COLOR_NONE
 };
 
+enum SquareColor {
+  DARK,
+  LIGHT
+};
+
 
 ////
 //// Inline functions
 ////
 
 
 ////
 //// Inline functions
 ////
 
-inline void operator++ (Color &c, int) { c = Color(int(c) + 1); }
-
 inline Color opposite_color(Color c) {
   return Color(int(c) ^ 1);
 }
 inline Color opposite_color(Color c) {
   return Color(int(c) ^ 1);
 }