diff options
author | Paul Duncan <pabs@pablotron.org> | 2019-01-07 19:47:55 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2019-01-07 19:47:55 -0500 |
commit | ad4c3bf0154aae2adedd4ecf7239e30e2d5f9e1c (patch) | |
tree | 2938ea062af4e0b70cf1a961aa050575f5871b44 /src | |
parent | 6c5f348397d092fb2630496d22f4328404d762d5 (diff) | |
download | sok-ad4c3bf0154aae2adedd4ecf7239e30e2d5f9e1c.tar.bz2 sok-ad4c3bf0154aae2adedd4ecf7239e30e2d5f9e1c.zip |
remove debugs
Diffstat (limited to 'src')
-rw-r--r-- | src/cli-main.c | 3 | ||||
-rw-r--r-- | src/sok-ctx.c | 6 |
2 files changed, 3 insertions, 6 deletions
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; } |