From 3e7bb9b87ef9b47d8f643dbcae19a64ddbc81dbb Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 5 Aug 2025 09:04:00 +0200 Subject: Added DRFIN solver --- src/solvers/coord/solve.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/solvers/coord/solve.h') diff --git a/src/solvers/coord/solve.h b/src/solvers/coord/solve.h index f9ee06e..72bc064 100644 --- a/src/solvers/coord/solve.h +++ b/src/solvers/coord/solve.h @@ -52,10 +52,6 @@ coord_continue_onnormal(const dfsarg_solve_coord_t arg[static 1]) /* If only inverse moves are allowed */ if (flag == NISSY_NISSFLAG_INVERSE) return false; - - /* It's the first move */ - if (nn + ni == 0) - return true; /* Pruning table check */ if (!(flag & NISSY_NISSFLAG_MIXED) || ni != 0) { @@ -64,6 +60,10 @@ coord_continue_onnormal(const dfsarg_solve_coord_t arg[static 1]) if (nn + ni + pval > arg->target_depth) return false; } + + /* It's the first move */ + if (nn + ni == 0) + return true; if (arg->lastisnormal) { /* Can continue if we have already switched */ @@ -106,10 +106,6 @@ coord_continue_oninverse(const dfsarg_solve_coord_t arg[static 1]) /* If only normal moves are allowed */ if (flag == NISSY_NISSFLAG_NORMAL) return false; - - /* It's the first move */ - if (nn + ni == 0) - return true; /* Pruning table check */ if (!(flag & NISSY_NISSFLAG_MIXED) || nn != 0) { @@ -118,6 +114,10 @@ coord_continue_oninverse(const dfsarg_solve_coord_t arg[static 1]) if (nn + ni + pval > arg->target_depth) return false; } + + /* It's the first move */ + if (nn + ni == 0) + return true; if (!arg->lastisnormal) { /* Can continue if we have already switched */ @@ -261,7 +261,7 @@ solve_coord_dispatch( coord_t *coord; uint8_t trans; - parse_coord_and_trans(coord_and_trans, &coord, &trans); + parse_coord_and_trans(coord_and_trans, &coord, NULL, &trans); if (coord == NULL) { LOG("Error: could not parse coordinate from '%s'\n", -- cgit v1.3