This repository has been archived on 2026-10-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
lightup/README.md
T
2021-11-10 17:15:17 +01:00

1.1 KiB

lightup-a42e

game game_new(square *squares) ->

game game_new_empty(void) ->

game game_copy(cgame g);

bool game_equal(cgame g1, cgame g2);

void game_delete(game g);

void game_set_square(game g, uint i, uint j, square s);

square game_get_square(cgame g, uint i, uint j);

square game_get_state(cgame g, uint i, uint j);

square game_get_flags(cgame g, uint i, uint j);

bool game_is_blank(cgame g, uint i, uint j);

bool game_is_lightbulb(cgame g, uint i, uint j);

bool game_is_black(cgame g, uint i, uint j);

int game_get_black_number(cgame g, uint i, uint j);

bool game_is_marked(cgame g, uint i, uint j);

bool game_is_lighted(cgame g, uint i, uint j);

bool game_has_error(cgame g, uint i, uint j);

bool game_check_move(cgame g, uint i, uint j, square s);

void game_play_move(game g, uint i, uint j, square s);

void game_update_flags(game g);

bool game_is_over(cgame g);

void game_restart(game g);

void game_print(cgame g);

game game_default(void);

game game_default_solution(void);