aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-24 00:57:54 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-24 00:57:54 +0100
commitc4774369d86ebc893da2ddd5dc851695c2d2ea7c (patch)
tree2bc9d48e21226478818b8957d862f8bd315f5502 /FICS
parentbf0a8ae223c83904ae128a98213555d0ce93059a (diff)
Reformatted struct
Diffstat (limited to 'FICS')
-rw-r--r--FICS/board.h40
1 files changed, 26 insertions, 14 deletions
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;
/*