File: run-bakers-game-sequence.bash

package info (click to toggle)
freecell-solver 3.26.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,864 kB
  • ctags: 3,658
  • sloc: ansic: 34,721; perl: 12,320; xml: 5,999; python: 1,149; sh: 965; ruby: 347; cpp: 304; makefile: 151
file content (23 lines) | stat: -rwxr-xr-x 450 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

GAME="bakers_game"

RESULTS_DIR="$GAME-results/"

START="${1//,/}"
shift
END="${1//,/}"
shift

MAX_ITERS='10,000,000'

mkdir -p "$RESULTS_DIR"

seq "$START" "$END" |
(while read DEAL ; do
    echo "${DEAL}:"
    ./board_gen/make_pysol_freecell_board.py "$DEAL" "$GAME" |
        ./fc-solve --game "$GAME" -l eo -mi "${MAX_ITERS//,/}" -p -t -sam > \
        "$(printf "%s/%09d.sol" "$RESULTS_DIR" "$DEAL")"
done) | tee -a total_dump.txt