]> git.sesse.net Git - stockfish/blobdiff - src/square.h
Introduce enum SquareColor
[stockfish] / src / square.h
index d35d72bfd5b21311f1b2be9b79d05c597016d76f..e4eab2ac2bad85b6d54717bb41cbc6cf9e86c16e 100644 (file)
@@ -135,8 +135,8 @@ inline Rank relative_rank(Color c, Square s) {
   return square_rank(relative_square(c, s));
 }
 
-inline Color square_color(Square s) {
-  return Color((int(square_file(s)) + int(square_rank(s))) & 1);
+inline SquareColor square_color(Square s) {
+  return SquareColor((int(square_file(s)) + int(square_rank(s))) & 1);
 }
 
 inline bool same_color_squares(Square s1, Square s2) {