Cqsi / lichs

♟ Play chess against real players in your terminal using Lichess
https://pypi.org/project/lichs/
MIT License
117 stars 19 forks source link

add clock #47

Closed silva-nick closed 3 years ago

silva-nick commented 3 years ago

I updated both the test and normal scripts to support a clock; It works for white and black.

I had to change the Game import in main.py() to get the code to run locally. I'm not sure if this will change the program's functionality from pip.

Cqsi commented 3 years ago

Sorry for being a little late seeing this pull request. It seems really cool, thank you! I look through it and then I'll merge. When I merge pull requests on Github it will not automatically update pip, so I'll do that as well once everything works.

silva-nick commented 3 years ago

Awesome. I also think the way I handled timing the first move was a little hacky so I'd definitely be willing to change it. Thanks!

Cqsi commented 3 years ago

The code looked good and I merged it. I shall still look through it a few times before I also change the program on PyPi.