Skip to content

Commit 15c3803

Browse files
authored
Fix nuritwin with 1x1 region (#226)
* Fix nuritwin with 1x1 region * Might as well
1 parent 2608b60 commit 15c3803

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cspuz_rs_puzzles/src/puzzles/nuritwin.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ pub fn solve_nuritwin(
2929
assert_eq!(rooms.len(), clues.len());
3030

3131
for i in 0..rooms.len() {
32+
if (rooms[i].len() as i32) < 3 {
33+
return None;
34+
}
3235
let block_size = &solver.int_var(1, (rooms[i].len() as i32) / 2);
3336
if let Some(n) = clues[i] {
3437
solver.add_expr(block_size.eq(n));

0 commit comments

Comments
 (0)