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:
parent
4da89ccc8c
commit
3eb36012b3
1 changed files with 7 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue