Skip to content

Commit

Permalink
added a very hard puzzle (which currently has more solutions than it …
Browse files Browse the repository at this point in the history
…should have because the rule about each row and column should be unique is not yet implemented)
  • Loading branch information
Zomis committed Jan 3, 2015
1 parent 6e3e946 commit 02e49e1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/java/net/zomis/minesweeper/analyze/bounded/Binero.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ public void hard() throws Exception {
}
}

@Test
public void veryHard() throws Exception {
AnalyzeFactory<Integer> puzzle = binero(getClass().getResourceAsStream("veryhard"));
AnalyzeResult<Integer> solved = puzzle.solve();
System.out.println(solved.getTotal());
for (Solution<Integer> ee : solved.getSolutions()) {
System.out.println(ee);
}
}

private static Integer pos(int x, int y, int size) {
return y * size + x;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
xx1xxx
00x1xx
0xxxxx
xxxxxx
xxx1xx
xxxx0x

0 comments on commit 02e49e1

Please sign in to comment.