Remove testing predicate code

This commit is contained in:
Bill Rossi 2025-01-16 19:53:47 -05:00
parent 0ff24ad65b
commit 28077a0eeb
2 changed files with 0 additions and 36 deletions

View File

@ -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) {

View File

@ -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();