File: 34152-2fc-short-solution.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 (24 lines) | stat: -rw-r--r-- 538 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
24
#!/bin/bash

# What this script does is generate a relatively short solution for
# 34152-mid.board derived from the two-freecell #341,52 board which the
# solver had difficulty solving.

function myfunc()
{
    ./fc-solve -to 01ABCDE '--set-pruning' r:tf --freecells-num 2 -opt -opt-to 0123456789ABCDE -p -t -sam -sel -
}

cat <<'EOF' | myfunc
Foundations: H-3 C-0 D-0 S-0
Freecells: - 7D
AC AD KC 6C KH 3S 7H
4D 4S JH 5C QH JS TH
8H 9S 7S 4H KD 4C TC 9D
QD AS 8C 8S 6D JD 2S
7C
9H 3D 8D 6H 5S
5H QC QS 2C KS 6S 5D
3C TS 2D JC TD 9C
EOF