src/chess/rules.h

changeset 133
c58ae152733e
parent 131
c33567d61ba7
--- a/src/chess/rules.h	Sun Jun 07 16:56:22 2026 +0200
+++ b/src/chess/rules.h	Fri Jun 12 13:34:35 2026 +0200
@@ -209,6 +209,14 @@
 char* getpieceunicode(uint8_t piece);
 
 /**
+ * Returns the color of the player who is next to move.
+ *
+ * @param gamestate the current game state
+ * @return the color of the player who is next to move
+ */
+uint8_t current_color(GameState *gamestate);
+
+/**
  * Checks, if a specified field is covered by a piece of a certain color.
  * 
  * The out-parameters may both be NULL, but if any of them is set, the other

mercurial