X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=board.h;h=4223e836ff1d9620e334c0c8c9d93f5720608364;hp=9a9a503fff91a09f71f270f4ce0e07b226af3268;hb=e15efca6667b2673b4c1a5879a6917eab6800e58;hpb=0d182b4efac85dce968068bfe4509e52e9a30051 diff --git a/board.h b/board.h index 9a9a503..4223e83 100644 --- a/board.h +++ b/board.h @@ -10,17 +10,16 @@ #include "square.h" #include "util.h" -// constants +// defines -const int Empty = 0; - -const int SideH = 0; -const int SideA = 1; -const int SideNb = 2; +#define Empty 0 +#define SideH 0 +#define SideA 1 +#define SideNb 2 // types -struct board_t { +typedef struct { uint8 square[SquareNb]; sint8 pos[SquareNb]; @@ -38,7 +37,7 @@ struct board_t { sint16 move_nb; uint64 key; -}; +} board_t; // functions