Skip to content

Commit

Permalink
solve some puzzles
Browse files Browse the repository at this point in the history
  • Loading branch information
revolt3245 committed Nov 12, 2023
1 parent f02c255 commit 053ae97
Show file tree
Hide file tree
Showing 177 changed files with 410 additions and 4 deletions.
1 change: 1 addition & 0 deletions BnW_Picross/bnw_picross_solver/+Parameter/get_parameter.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

%% setting
in_param.save_video (1,1) logical = true;
in_param.save_figure (1,1) logical = true;
end
%% parameter
out_param = in_param;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 14 additions & 3 deletions BnW_Picross/bnw_picross_solver/main_mult.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
t_string = sprintf("%d%02d%02d_%02d%02d%02d/", t.Year, t.Month, t.Day, t.Hour, t.Minute, int32(t.Second));

for i=1:12
disp("Puzzle "+i);
cla(ax);
param = Parameter.get_parameter(file="samples/nonogram_galaxy/4/" + i + ".txt", ...
param = Parameter.get_parameter(file="samples/nonogram_galaxy/5/" + i + ".txt", ...
save_video=true);
state = State.get_initial_state(param);
graphics = Draw.initialize(fig, ax, 0.5, param);
Expand All @@ -21,9 +22,9 @@
mkdir(video_folder + t_string);
end

filename = "Picross";
filename_video = "Picross";

graphics.video = VideoWriter(video_folder + t_string + filename + i + ".mp4", "MPEG-4");
graphics.video = VideoWriter(video_folder + t_string + filename_video + i + ".mp4", "MPEG-4");
graphics.video.FrameRate = FPS;
graphics.video.Quality = 100;

Expand All @@ -45,4 +46,14 @@
if param.save_video
graphics.video.close;
end

if param.save_figure
figure_folder = "Photo/";
if ~isfolder(figure_folder + t_string)
mkdir(figure_folder + t_string);
end

filename_figure = "Picross";
saveas(gcf, figure_folder + t_string + filename_figure + i + ".png");
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
2 2
3 1
2 1 5
1 5
2 5

3 1
Expand Down
73 changes: 73 additions & 0 deletions BnW_Picross/bnw_picross_solver/samples/nonogram_galaxy/5/10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
30 30

10 10
1 6 5 2
1 3 2 1 1
1 3 2 1 1 1 2 2
4 3 1 2 1 1 1 1 4

3 2 6 8 3
3 7 3 3 2 1 3
2 1 2 4 3 6 2
2 10 6 2 1 2
1 7 4 9 1

1 1 9 1 1 3 3 1
1 5 13 4 1
5 3 4 8
3 2 7 7 1
1 3 5 1 2 3

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

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

6 12 6
4 3 3 4
3 20 3
2 18 2
2 2 12 1 2

2 9 14
1 1 5 11
2 4 4 7
5 5 4 5 1
4 3 10 3 1

3 1 5 4 3 2 1
2 10 1 2 1 3
2 8 1 2 2 3
1 1 1 3 1 3
1 9 2 1 3

1 4 5 1 2 1 3
15 3 1 3
1 5 4 3 1 1 3
3 8 1 1 1 3
3 1 4 1 3 1 1 3

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

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

4 13 2
2 2 3 5 4 1
1 1 3 3 7
2 6 11
12 14
73 changes: 73 additions & 0 deletions BnW_Picross/bnw_picross_solver/samples/nonogram_galaxy/5/11.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
30 30

2 4 13 4
1 5 2 7 2 5
7 17 2
4 12 10
3 1 2 5 1 3 2

4 3 3 2 3 1
1 6 4
2 5 1 1 5
9 1 4
2 7 3 2 2

1 1 7 7 1
2 2 6 9 2
12 6 8
7 3 4 1 6
1 4 2 5 6

7 3 10 2
3 6 1 5 7
10 1 13
3 3 1 3 3 3
1 1 3 3 1 1 1

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

2 1 2 1 1 1 1 2 1
1 2 1 1 1 1 2 1
1 2 1 1 1 1 2 1
1 2 1 1 1 2 1 1 1 1 1 2
1 1 1 2 1 1 1 1 1 1 1

2 12 6 1
1 3 3 3 6 2
4 1 1 7 1
6 2 5 13
6 11 1

4 6 6 7 1
3 1 8 3 7 1
4 8 3
1 12 15
3 1 10 1

1 2 6 1 1
5 1 2 2
6 1 2
1 4 2 3 9
6 1 5 1

5 1 2 2 2 1
4 6 1 1 1
6 1 10 1
4 25
3 3 9 1

4 8 4 2 1
1 10 1 3 2
6 3 2 2 1
4 19
2 7

3 6 7 1
4 3 2 7 1
2 1 7 1
5 3 15
6 3 3
73 changes: 73 additions & 0 deletions BnW_Picross/bnw_picross_solver/samples/nonogram_galaxy/5/12.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
30 30

3
3 5
6 7
8 9
9 2 1 3 7

8 9 1 8
8 2 6 1 8
10 1 5 2 8
2 7 2 4 1 5 3
2 8 1 4 1 4 2

2 7 2 2 7 1
1 10 2 2 2 3
1 5 6 2 1 1 1
1 2 3 4 1 1 2
1 2 1 4 2 3

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

4 4 2 2 2 1
7 2 6 1 2
2 2 4 2 2 2
3 1 3 1 1
2 1 4 2 2

1 2 10 2
3 1 1 1 3
1 4 5 3 1
3 4 5 3
26

10 1
6 4 1 2
5 4 1 1 1
8 6 1 2
10 9 3

12 12 2
16 2 2 1
13 1 2 1 1
11 1 1 1 2 1
2 6 1 5 1 3

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

14 4 3 1
13 1 2 1 1 1
5 5 4 3 1
3 3 2 1 2
2 5 5 2 3

6 1 1 1 1 3 2 3
3 3 1 1 4 1 4
11 1 5 2 1 2
12 1 2 2 1
15 1 2 2

8 6 3 3
6 2 5 2
6 3 1 1 1
6 1 1 1
8 1 2
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
2 4
3 3
2 3
2 2
2 3
52 changes: 52 additions & 0 deletions BnW_Picross/bnw_picross_solver/samples/nonogram_galaxy/5/7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,55 @@
8 3 1 1 1

9 4 1 1
6 4 3 1 1
5 4 3 1 1
5 4 3 1 1
4 3 3 1 1

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

3 4 2 2 5
3 14
3 9
4 12
17

7 6
4 8
2 7
2 6
2 4

5
8 1
9 2
3 6
5 3 4

8 2 3
9 1 4 1
10 1 3 2
8 3 2 2 3
6 2 1 2 4

6 2 4 3
9 10
10 9
10 7
3 17

6 12
10 2 6
13 4
6 3
1 4

3 5
6 4
2 3
1 1
9
Loading

0 comments on commit 053ae97

Please sign in to comment.