Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#6 PySolFC's Deals are Incompatible with PySol's

v1.0 (example)
closed-rejected
nobody
None
5
2009-12-03
2008-09-05
Shlomi Fish
No

The PySolFC Deals above 32,000 are incompatible with PySol's for the deals that they share if Python is below 2.3.

{{{{{{{{{{{{
$ python board_gen/make_pysol_freecell_board.py -t 105000 freecell
9D KD 9H AH 8H JC 5S
4S 6H 8C 7D 5H KH 2S
7H KS AC 6S JH TD TC
JS 3C 6D 2H AS 4C QS
3H 3D 3S TH 8D QH
7S JD QC QD KC 2D
9S 7C TS 2C AD 9C
6C 4D 4H 5C 8S 5D
shlomi:$trunk/fc-solve/source$
}}}}}}}}}}}}}

But the PySolFC deal is "JH KQ 2S AH 4H..." Looking at pysolrandom.py, I see that:

{{{{{{{{{{{{{{{{
# select
if sys.version_info >= (2,3):
PysolRandom = SysRandom
else:
PysolRandom = LCRandom64
}}}}}}}}}}}}}}}}

However, SysRandom should not be used for deal numbers that are also present in PySol, because it breaks compatibility.

Discussion

  • Skomoroh
    Skomoroh
    2009-12-03

    • status: open --> closed-rejected