mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
sanity check
This commit is contained in:
parent
76ba6f7d2b
commit
ed4f1ae516
1 changed files with 5 additions and 3 deletions
|
@ -854,9 +854,11 @@ class FreeCellSolver_Hint(Base_Solver_Hint):
|
||||||
line = line_p.rstrip('\r\n')
|
line = line_p.rstrip('\r\n')
|
||||||
m = re.match(r'^(?:Foundations:|Founds?:)\s*(.*)', line)
|
m = re.match(r'^(?:Foundations:|Founds?:)\s*(.*)', line)
|
||||||
if m:
|
if m:
|
||||||
g = re.findall(
|
RE = r'(' + SUITS_RE + r')-([' + RANKS0_S + r'])'
|
||||||
r'\b(' + SUITS_RE + r')-([' + RANKS0_S + r'])\b',
|
s = m.group(1)
|
||||||
m.group(1))
|
assert re.match(r'^\s*(?:' + RE + r')?(?:\s+'
|
||||||
|
+ RE + r')*\s*$', s)
|
||||||
|
g = re.findall(r'\b' + RE + r'\b', s)
|
||||||
for gm in g:
|
for gm in g:
|
||||||
for foundat in game.foundations:
|
for foundat in game.foundations:
|
||||||
suit = foundat.cap.suit
|
suit = foundat.cap.suit
|
||||||
|
|
Loading…
Add table
Reference in a new issue