]> git.sesse.net Git - stockfish/blobdiff - src/color.h
Retire HistoryMax
[stockfish] / src / color.h
index 50901ef30c3d1c52b99f6eef37d51819b1be487b..08eb8d8183c6edbdb9fc572003a5af1e49f42f6a 100644 (file)
@@ -21,6 +21,7 @@
 #if !defined(COLOR_H_INCLUDED)
 #define COLOR_H_INCLUDED
 
+#include "types.h"
 
 ////
 //// Types
@@ -32,13 +33,18 @@ enum Color {
   COLOR_NONE
 };
 
+enum SquareColor {
+  DARK,
+  LIGHT
+};
+
+ENABLE_OPERATORS_ON(Color)
+
 
 ////
 //// Inline functions
 ////
 
-inline void operator++ (Color &c, int) { c = Color(int(c) + 1); }
-
 inline Color opposite_color(Color c) {
   return Color(int(c) ^ 1);
 }