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

Display final statistics in solver

git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@279 39dd0a4e-7c14-0410-91b3-c4f2d318f732
This commit is contained in:
skomoroh 2012-06-05 18:44:08 +00:00
parent 6acc594271
commit 2256f5d9f2

View file

@ -26,6 +26,7 @@
import os
import time
import subprocess
import re
# PySol imports
from settings import DEBUG, FCS_COMMAND
@ -888,9 +889,16 @@ class FreeCellSolver_Hint:
for s in pout:
if DEBUG:
print s,
# TODO:
# Total number of states checked is 6.
# This scan generated 6 states.
m = re.match('Total number of states checked is (\d+)\.', s)
if m:
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'):
continue