WIP refactor

This commit is contained in:
Ole Morud
2023-03-22 20:35:43 +01:00
parent 39f9d848b5
commit f18c9215e5
11 changed files with 464 additions and 430 deletions

10
util.h Normal file
View File

@@ -0,0 +1,10 @@
#include "common.h"
bool tile_empty(tile_t t);
index_t abs_pos(index_t p);
index_t column(index_t i);
index_t row(index_t i);
tile_t abs_tile(tile_t t);
bool same_color(tile_t a, tile_t b);
bool opposite_color(tile_t a, tile_t b);