reversi-ai icon indicating copy to clipboard operation
reversi-ai copied to clipboard

Control-D error

Open ghost opened this issue 7 years ago • 3 comments

When I am trying to exit game with combination of Control and D keys, Game will not close. Something must be wrong with your Inputs.

ghost avatar Sep 07 '17 13:09 ghost

I suggest looking at the variables. Must be something wrong with python interpreter

ghost avatar Sep 07 '17 13:09 ghost

Hi,

It looks like input() throws an EOFError when processing Ctrl+D as input, just eyeballing the code after 4 years I think this is the culprit.

There is an edit that can be done to the https://github.com/Zolomon/reversi-ai/blob/master/game/controllers.py#L28-L67 class.

If you'd like, you can try to do the necessary change yourself and send a PR, or wait for me to do it myself.

If you have any questions I'd be glad to try to answer them.

Cheers!

Zolomon avatar Sep 07 '17 16:09 Zolomon

thanks! I will try to find a way around that roadblock. I definitely like your project very much and I could help with it in any way you'd like.

ghost avatar Sep 07 '17 18:09 ghost