File: run-bakers-game-sequence.bash

package info (click to toggle)
freecell-solver 3.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,332 kB
  • sloc: ansic: 29,493; perl: 8,911; xml: 5,162; python: 1,124; sh: 777; ruby: 358; cpp: 304; makefile: 150
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