reformat and refactor a bit

This commit is contained in:
Ole Morud
2023-03-25 13:39:01 +01:00
committed by Ole Morud
parent 311029db1f
commit 44c2ae5290
6 changed files with 125 additions and 97 deletions

View File

@@ -7,6 +7,6 @@
bool move_ok(const tile_t board[BOARD_SIZE],
index_t from,
index_t to,
int player);
int player);
#endif

View File

@@ -1,7 +1,7 @@
#include "common.h"
bool tile_empty(tile_t t);
index_t abs_pos(index_t p);
index_t abs_index(index_t i);
index_t column(index_t i);
index_t row(index_t i);
tile_t abs_tile(tile_t t);