arthurquinn / solitaire

A solitaire engine and game interface that will eventually be deployed to the web.
0 stars 0 forks source link

Bug: Crashes if you press a key while game loops is running #18

Closed MSaIim closed 6 years ago

MSaIim commented 6 years ago

If you press a key when game loop is running, the engine will crash with an AssertionException (something to do with the Json).

arthurquinn commented 6 years ago

That's because the engine isn't designed for keyboard input, it's designed for JSON input from gui. My suggestion is if you want to test the engine, write up a quick python script to launch an engine and take your keyboard input and turn it into JSON and send it to the engine. I'm combination with a logger you can make sure the engine is working properly.