1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Start converting the move matches to regexps.

This commit is contained in:
Shlomi Fish 2013-05-22 13:24:26 +03:00
parent 4da89ccc8c
commit 3eb36012b3

View file

@ -904,10 +904,15 @@ class FreeCellSolver_Hint:
states = int(m.group(1))
self.dialog.setText(states=states)
if not s.startswith('Move'):
m = re.match('Move (.*)', s)
if not m:
continue
words = s.split()
move_s = m.group(1)
words = move_s.split()
words = ["Move"] + words
ncards = words[1]
if ncards == 'the':
# "Move the sequence on top of Stack 1 to the foundations"