Skip to content

Commit

Permalink
add new samples
Browse files Browse the repository at this point in the history
  • Loading branch information
revolt3245 committed Nov 11, 2023
1 parent 591c1db commit bc7f6de
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 47 deletions.
Binary file not shown.
10 changes: 6 additions & 4 deletions BnW_Picross/Test3/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
fig = figure(Name="picross");
ax = gca;

param = Parameter.get_parameter(file="test.txt", ...
save_video=false);
param = Parameter.get_parameter(file="samples/30/sample2.txt", ...
save_video=true);
state = State.get_initial_state(param);
graphics = Draw.initialize(fig, ax, 0.5, param);

Expand Down Expand Up @@ -37,10 +37,12 @@
state.tick = tic;
[state, flag] = Solver.branch_solver(param, state, graphics);

if flag && ~Util.check_all_complete(param, state)
[state, flag] = Solver.backtrack_solver(param, state, graphics);
end

if ~flag
disp("Cannot be solvable");
elseif ~Util.check_all_complete(param, state)
[state, flag] = Solver.backtrack_solver(param, state, graphics);
end

if param.save_video
Expand Down
37 changes: 37 additions & 0 deletions BnW_Picross/Test3/samples/15/sample3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
15 15

2 1
3 2
3 2
5
4

7
9
5
5
5

5
5
5
4
3

2 1
3 2
3 2
5
4

7
9
5
5
5

5
5
5
4
3
73 changes: 73 additions & 0 deletions BnW_Picross/Test3/samples/30/sample2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
30 30

3
4
5
8
3 5 1

3 5 1
3 5 2
3 5 2
1 5 2
2 5 2

12 2
4 5 1
2 2 5 2
1 1 9
3 1 5

7 5
5 1 5
4 1 5 1
3 1 5 2
3 1 5 1

3 5 2
4 5 2
4 5 2
8 2
6 3 1

5 2 3
8 4
16
4 9
3 7

7 3
9 4
16
4 8
3 5

1 6
5 8
4 5 4
2 5 5
1 5 2 3

2 5 1 3
4 5 2 3
4 2 5 2 4
1 1 5 2 5
2 1 5 2 5

1 1 5 3 3
2 6 2
1 5
1 5
1 6

1 5 1
2 5 1
1 5 2
6 1
5 2

5 2
5 2
5 2
4 2
3 3
43 changes: 0 additions & 43 deletions BnW_Picross/Test3/test.txt

This file was deleted.

0 comments on commit bc7f6de

Please sign in to comment.