Push version 0.3.0
This commit is contained in:
parent
f660377768
commit
bb344cb956
7 changed files with 311 additions and 108 deletions
29
types.h
29
types.h
|
|
@ -23,25 +23,6 @@ typedef uint_fast8_t column_t;
|
|||
#define WININT_FORMAT "%3d"
|
||||
|
||||
|
||||
typedef struct {
|
||||
bool player;
|
||||
rowsint_t *height;
|
||||
column_t *column;
|
||||
rowsint_t rows;
|
||||
columnsint_t columns;
|
||||
} board_t;
|
||||
|
||||
typedef struct {
|
||||
column_t *vertical2;
|
||||
column_t *horizontal2;
|
||||
column_t *diagonalUp2;
|
||||
column_t *diagonalDown2;
|
||||
column_t *vertical4;
|
||||
column_t *horizontal4;
|
||||
column_t *diagonalUp4;
|
||||
column_t *diagonalDown4;
|
||||
} directions_t;
|
||||
|
||||
typedef struct {
|
||||
winint_t total;
|
||||
winint_t horizontal;
|
||||
|
|
@ -51,9 +32,11 @@ typedef struct {
|
|||
} wincount_t;
|
||||
|
||||
typedef struct {
|
||||
bool player;
|
||||
rowsint_t *height;
|
||||
column_t *column;
|
||||
rowsint_t rows;
|
||||
columnsint_t columns;
|
||||
wincount_t count0;
|
||||
wincount_t count1;
|
||||
column_t *win0;
|
||||
column_t *win1;
|
||||
directions_t same;
|
||||
} wins_t;
|
||||
} board_t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue