marcusbuffett / command-line-chess

A python program to play chess against an AI in the terminal.
MIT License
500 stars 162 forks source link

Git Clone Problem? #53

Closed ericborgos closed 1 year ago

ericborgos commented 1 year ago

When I run it like !pip install cl-chess it works fine but when instead I use: git clone https://github.com/marcusbuffett/command-line-chess like you suggested (so it has the most recent version), it shows a different graphical version of the chess board. This is how it looks with pip install Screenshot 2023-04-18 at 07-57-10 Google Colaboratory and this is git clone: Screenshot 2023-04-18 at 07-56-53 Google Colaboratory

I only play chess IRL, not online, so maybe I am not used to how it works, but the git clone way only shows me what the AI is doing, not my own moves.

I should note that I am using Google Colab, so maybe somehow that is changing it. In case you want to try it, the Google Colab code is: !git clone https://github.com/marcusbuffett/command-line-chess %cd /content/command-line-chess !pip install . !chess

ClasherKasten commented 1 year ago

This is not a problem with command-line-chess, but with the coloring it uses as a default. But this can be changed via command-line arguments (in this case the --white argument, see code here) An example using !chess --white="red": screenshot


As a side note: pip supports installing from a git repository through pip install git+<url-to-repository>. Documentation can for this be found here