From ad4c3bf0154aae2adedd4ecf7239e30e2d5f9e1c Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 7 Jan 2019 19:47:55 -0500 Subject: remove debugs --- src/cli-main.c | 3 --- src/sok-ctx.c | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/cli-main.c b/src/cli-main.c index 00853e7..c68908c 100644 --- a/src/cli-main.c +++ b/src/cli-main.c @@ -123,9 +123,6 @@ int main(int argc, char *argv[]) { bool done = false; while (!done) { print_level(&ctx); - for (size_t i = 0; i < ctx.level.num_boxes; i++) { - fprintf(stderr, "ctx->boxes[i] = {%u, %u}\n", ctx.boxes[i].x, ctx.boxes[i].y); - } printf("%zu%s> ", ctx.num_moves, sok_ctx_is_done(&ctx) ? " (won!)" : ""); if (!fgets(buf, sizeof(buf), stdin)) { diff --git a/src/sok-ctx.c b/src/sok-ctx.c index e4a922b..de22d1e 100644 --- a/src/sok-ctx.c +++ b/src/sok-ctx.c @@ -241,7 +241,7 @@ sok_can_move( { .x = ctx->home.x, .y = ctx->home.y - 2 }, }; - fprintf( + /* fprintf( stderr, "D: ctx->home = {%u, %u}, ps[] = {{%u, %u}, {%u, %u}};\n" "D: tile_is_floor(ctx, ps[0]) = %c, tile_is_box(ctx, ps[0]) = %c\n" @@ -254,7 +254,7 @@ sok_can_move( tile_is_box(ctx, ps[0]) ? 't' : 'f', tile_is_floor(ctx, ps[1]) ? 't' : 'f', tile_is_box(ctx, ps[1]) ? 't' : 'f' - ); + ); */ return (( (ctx->home.y > 0) && @@ -410,7 +410,7 @@ sok_ctx_move( const sok_dir_t dir ) { if (!sok_can_move(ctx, dir)) { - fprintf(stderr, "can_move failed\n"); + // fprintf(stderr, "can_move failed\n"); return false; } -- cgit v1.2.3