src/chess/game-info.h

changeset 127
7258a46bf5ae
parent 126
d58b2abdd330
--- a/src/chess/game-info.h	Fri May 22 18:34:02 2026 +0200
+++ b/src/chess/game-info.h	Tue May 26 15:21:42 2026 +0200
@@ -88,9 +88,16 @@
     uint16_t addtime;
 } GameInfo;
 
+/** The buffer length for player names in GameInfo structures. */
+#define PLAYER_NAME_BUFLEN 32
+
 typedef struct {
     Board board;
     Move* moves;
+    /** optional name of the white player */
+    char wname[PLAYER_NAME_BUFLEN];
+    /** optional name of the black player */
+    char bname[PLAYER_NAME_BUFLEN];
     /** capacity of the move array */
     unsigned movecapacity;
     /** number of (half-)moves (counting BOTH colors) */

mercurial