src/chess/rules.h

changeset 218
1e9751f8eb0d
parent 216
d0c3d3016650
--- a/src/chess/rules.h	Thu Sep 03 18:32:47 2026 +0200
+++ b/src/chess/rules.h	Fri Sep 04 13:49:48 2026 +0200
@@ -165,6 +165,10 @@
     unsigned int movecapacity;
     /** number of (half-)moves (counting BOTH colors) */
     unsigned int movecount;
+    /** number of half-moves that have been played before reaching fen_start */
+    unsigned int move_start; // TODO: use this in board view and PGN export
+    /** number of half-moves w/o capture or pawn move played before fen_start */
+    unsigned int fifty_cntr_start;
     /** a premove that shall be evaluated next time it's our turn */
     char premove[8];
     bool checkmate;

mercurial