bfentiman / wizardchess

MIT License
1 stars 2 forks source link

Integrating pychess python package #3

Closed coreylowman closed 7 years ago

coreylowman commented 7 years ago

So this is a pretty big rewrite, so sorry for the awful diff. This PR will make it a ton easier to integrate a chess engine (like stockfish), because the python chess package has UCI chess engine interface built in. I can integrate a chess engine in another PR.

Here are the notable changes:

I can run a regular chess game when commenting out the motor & magnet code, so I'm fairly confident in that. I'm not sure about the magnet & motor code though... I can't see anything obviously wrong, but you'll have to test it and let me know. :)

bfentiman commented 7 years ago

Thanks for the pull request. I will test it with the physical machine and update you so that you know what ends up happening with it. 👍

coreylowman commented 7 years ago

Sounds good - note that playing against the computer will require you to download the stockfish executable (or some other UCI chess engine executable), and then modify the path to that executable on Line 318