int main(int argc, char** argv) { struct Tile* t = Tile_new('f'); printf("tile %c\n", t->color); struct Board* b = Board_new(9,9); struct Tile* t2 = Board_get(b,0,0); printf("tile %c\n", t2->color); Board_print(b); Board_randomize(b); Board_print(b); struct Board* b2 = Board_clone(b); int matches; matches = Board_check_matching_at(b2, 0, 4); printf("board matches %i\n", matches); return 0; }
int display(){ if (displayMode == GUI){ if (GUI_paint()){ return 1; } } else{ Board_print(&board); } return 0; }