-
Notifications
You must be signed in to change notification settings - Fork 9
/
pics.sh
20 lines (14 loc) · 888 Bytes
/
pics.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -e
perl solve_from_db.pl expert 95; perl vis.pl < foo > solver.svg
MAP_HEIGHT=10 MAP_WIDTH=10 PIECES=20 cmake . && make
bin/mklinjat --puzzle_count=1 --seed=90210 --solve_progress_file=progress-opt.json --score_cover=1 --score_cant_fit=3 --score_square=50 --score_dep=100 --score_one_of=60 --score_max_width=-1
perl vis.pl < progress-opt.json > progress-opt.svg
MAP_HEIGHT=10 MAP_WIDTH=10 PIECES=16 cmake . && make
bin/mklinjat --puzzle_count=1 --seed=90210 --candidate_progress_file=dots-opt.json --score_cover=1 --score_cant_fit=3 --score_square=50 --score_dep=100 --score_one_of=60 --score_max_width=-1 --optimize_iterations=0
perl vis.pl < dots-opt.json > dots-opt.svg
perl solve_from_db.pl easy 4; perl vis.pl < foo > unique.svg
for i in solver progress-opt dots-opt unique; do
rsvg-convert < $i.svg > $i.png
convert $i.png -scale 480 $i-thumb.png
done