From c4774369d86ebc893da2ddd5dc851695c2d2ea7c Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 24 Dec 2023 00:57:54 +0100 Subject: Reformatted struct --- FICS/board.h | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) (limited to 'FICS/board.h') diff --git a/FICS/board.h b/FICS/board.h index ef5c238..380c43d 100644 --- a/FICS/board.h +++ b/FICS/board.h @@ -74,20 +74,32 @@ typedef int board_t[8][8]; typedef struct _game_state_t { - board_t board; - /* for bughouse */ - int holding[2][5]; - /* For castling */ - unsigned char wkmoved, wqrmoved, wkrmoved; - unsigned char bkmoved, bqrmoved, bkrmoved; - /* for ep */ - int ep_possible[2][8]; - /* For draws */ - int lastIrreversable; - int onMove; - int moveNum; - /* Game num not saved, must be restored when read */ - int gameNum; + board_t board; + + /* + * For bughouse + */ + int holding[2][5]; + + /* + * For castling + */ + unsigned char wkmoved, wqrmoved, wkrmoved; + unsigned char bkmoved, bqrmoved, bkrmoved; + + /* + * For ep + */ + int ep_possible[2][8]; + + /* + * For draws + */ + int lastIrreversable; + int onMove; + int moveNum; + + int gameNum; } game_state_t; /* -- cgit v1.2.3