Commit 295cfec6 authored by Taddeüs Kroes's avatar Taddeüs Kroes

No sleeps after moves, print computation time

parent a3c23780
......@@ -25,7 +25,10 @@ if __name__ == '__main__':
state.print()
print()
start = time.time()
moves = state.solve()
end = time.time()
print('thought for %.4f seconds' % (end - start))
if moves:
print('moves:', moves_to_keys(moves))
......@@ -45,6 +48,3 @@ if __name__ == '__main__':
press_keys(win, moves_to_keys(moves))
else:
print('no moves')
press_keys(win, 'l')
time.sleep(.1)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment