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

Merge branch 'final_solver_statistics' into shlomif_two_freecells_freecell_variant

This commit is contained in:
Shlomi Fish 2012-03-09 12:14:38 +02:00
commit 6ec02fc88a

View file

@ -26,6 +26,7 @@
import os import os
import time import time
import subprocess import subprocess
import re
# PySol imports # PySol imports
from settings import DEBUG, FCS_COMMAND from settings import DEBUG, FCS_COMMAND
@ -888,9 +889,16 @@ class FreeCellSolver_Hint:
for s in pout: for s in pout:
if DEBUG: if DEBUG:
print s, print s,
# TODO: m = re.match('Total number of states checked is (\d+)\.', s)
# Total number of states checked is 6. if m:
# This scan generated 6 states. iter = int(m.group(1))
self.dialog.setText(iter=iter)
m = re.match('This scan generated (\d+) states\.', s)
if m:
states = int(m.group(1))
self.dialog.setText(states=states)
if not s.startswith('Move'): if not s.startswith('Move'):
continue continue