Skip to content
Snippets Groups Projects
Commit 295cfec6 authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

No sleeps after moves, print computation time

parent a3c23780
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment