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
ed4f1ae516
commit
788965a55a
1 changed files with 5 additions and 2 deletions
|
@ -869,8 +869,11 @@ class FreeCellSolver_Hint(Base_Solver_Hint):
|
|||
continue
|
||||
m = re.match(r'^(?:FC:|Freecells:)\s*(.*)', line)
|
||||
if m:
|
||||
g = re.findall(
|
||||
r'\b(' + CARD_RE + r'|\-)\b', m.group(1))
|
||||
RE = r'(' + CARD_RE + r'|\-)'
|
||||
s = m.group(1)
|
||||
assert re.match(r'^\s*(?:' + RE + r')?(?:\s+'
|
||||
+ RE + r')*\s*$', s)
|
||||
g = re.findall(r'\b' + RE + r'\b', s)
|
||||
while len(g) < len(game.reserves):
|
||||
g.append('-')
|
||||
for i, gm in enumerate(g):
|
||||
|
|
Loading…
Add table
Reference in a new issue