diff options
author | Paul Duncan <pabs@pablotron.org> | 2019-01-08 22:44:14 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2019-01-08 22:44:14 -0500 |
commit | 8ece7a6a0d01f0375a21182ba6663627dc398977 (patch) | |
tree | 51bd673247a37c7abf982e41a3b8f7b020300919 /src/libsok/sok-solve.c | |
parent | 13717391b4469072c0cb8041666f0d50ae9996fd (diff) | |
download | sok-8ece7a6a0d01f0375a21182ba6663627dc398977.tar.bz2 sok-8ece7a6a0d01f0375a21182ba6663627dc398977.zip |
add is_done (busted, disabled)
Diffstat (limited to 'src/libsok/sok-solve.c')
-rw-r--r-- | src/libsok/sok-solve.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libsok/sok-solve.c b/src/libsok/sok-solve.c index 225ce9b..34a8320 100644 --- a/src/libsok/sok-solve.c +++ b/src/libsok/sok-solve.c @@ -31,6 +31,14 @@ sok_solve_step( return false; } +/* + * // make sure level is solvable + * if (sok_ctx_is_lost(ctx)) { + * // return failure + * return false; + * } + */ + for (size_t dir = 0; dir < SOK_DIR_LAST; dir++) { if (!sok_ctx_move(ctx, dir)) { continue; |