aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cli-main.c3
-rw-r--r--src/sok-ctx.c6
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;
}