Remove testing predicate code
This commit is contained in:
parent
0ff24ad65b
commit
28077a0eeb
@ -126,37 +126,6 @@ void game_handle_command(Game *g, const char *command) {
|
||||
free(response);
|
||||
break;
|
||||
}
|
||||
|
||||
Predicate fr;
|
||||
fr.type = PREDICATE_IN_ROOM;
|
||||
fr.argument = "FIRST_ROOM";
|
||||
printf("in room FIRST_ROOM: %d\n", predicate_fulfilled(g, &fr));
|
||||
|
||||
Predicate sr;
|
||||
sr.type = PREDICATE_IN_ROOM;
|
||||
sr.argument = "SECOND_ROOM";
|
||||
printf("in room SECOND_ROOM: %d\n", predicate_fulfilled(g, &sr));
|
||||
|
||||
Predicate lr;
|
||||
lr.type = PREDICATE_IN_ROOM;
|
||||
lr.argument = "LAST_ROOM";
|
||||
printf("in room LAST_ROOM: %d\n", predicate_fulfilled(g, &lr));
|
||||
|
||||
Predicate tr;
|
||||
tr.type = PREDICATE_TRUE;
|
||||
printf("true: %d\n", predicate_fulfilled(g, &tr));
|
||||
|
||||
Predicate lf;
|
||||
lf.type = PREDICATE_FLAG_ENABLED;
|
||||
lf.argument = "LEVER_PULLED";
|
||||
printf("lever pulled: %d\n", predicate_fulfilled(g, &lf));
|
||||
|
||||
Predicate sf;
|
||||
sf.type = PREDICATE_FLAG_ENABLED;
|
||||
sf.argument = "STEPS_TAKEN";
|
||||
printf("steps_taken: %d\n", predicate_fulfilled(g, &sf));
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
void game_handle_input(Game *g) {
|
||||
|
@ -21,11 +21,6 @@ int main(void) {
|
||||
game_load_words(g);
|
||||
game_load_flags(g);
|
||||
|
||||
for (int i = 0; i < g->flags->count; i++) {
|
||||
printf("%s: %d\n", g->flags->flags[i].key, g->flags->flags[i].value);
|
||||
}
|
||||
|
||||
|
||||
game_run_until_close(g);
|
||||
CloseWindow();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user