X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=unruly.c;h=616e5e54c6bfc39a8401dc1d33e079d4899392ef;hb=3ce69e84cad15844282d691fa03e711c5353c05e;hp=11e76f0c0ad198b36aa2d98ff79bc70b09d4999b;hpb=2f7831bb1626d82baff706e507d61a820ad84df1;p=sgt-puzzles.git diff --git a/unruly.c b/unruly.c index 11e76f0..616e5e5 100644 --- a/unruly.c +++ b/unruly.c @@ -14,7 +14,8 @@ * * Some variants include an extra constraint, stating that no two rows or two * columns may contain the same exact sequence of zeros and ones. - * This rule is rarely used, so it has been discarded for this implementation. + * This rule is rarely used, so it is not enabled in the default presets + * (but it can be selected via the Custom configurer). * * More information: * http://www.janko.at/Raetsel/Tohu-Wa-Vohu/index.htm @@ -1011,7 +1012,7 @@ static int unruly_validate_unique(const game_state *state, int horizontal, for (c = 0; c < nc; c++) if (state->grid[r*rmult + c*cmult] != EMPTY) nfull++; - if (nfull != nr) + if (nfull != nc) continue; for (r2 = r+1; r2 < nr; r2++) { int match = TRUE;