Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not showing white pieces #109

Open
sugizo opened this issue Apr 30, 2023 · 3 comments
Open

not showing white pieces #109

sugizo opened this issue Apr 30, 2023 · 3 comments

Comments

@sugizo
Copy link

sugizo commented Apr 30, 2023

tested on google colab
image

best regards

@vinc
Copy link
Owner

vinc commented May 5, 2023

Can you provide a link to Google Colab? I've never used the service before.

You can run the executable with --silent to hide the board at launch, then disable the colors with hide color and enable the board with show board.

@sugizo
Copy link
Author

sugizo commented May 5, 2023

https://colab.research.google.com

steps

!apt install cargo
!cargo install littlewing
!cp /root/.cargo/bin/littlewing /bin/
!littlewing --silent

hide color
show board
move e4
time 1 10
show think
play black

root cause
seems hide color is the root cause

nice to have

  • can parsing hide color as argument,
    or
    at least fix the white pieces not shown without execute hide color
  • can parsing play white or black or both as argument, so user no need to type play black
  • can parsing pgn file output
  • can parsing log file (for detail execution, in case littlewing is used by another software e.g. scid, chessx, xboard, etc)

e.g.

littlewing -w human -b human -pgn ./test.pgn -log ./test.log
littlewing -w engine /bin/littlewing -b human -pgn ./test.pgn -log ./test.log
littlewing -w human -b engine /bin/littlewing -pgn ./test.pgn -log ./test.log
littlewing -w engine /bin/littlewing -b engine /bin/stockfish -pgn ./test.pgn -log ./test.log

@vinc
Copy link
Owner

vinc commented May 5, 2023

The colors will be automatically disabled if the engine is not running from a tty. But the issue that you a reporting seems to come from Google Colab that is displaying a white foreground ANSI code on a white background.

Please note that the engine can also switch to XBoard or UCI protocol when used by another software.

I think what you are suggesting is already covered pretty nicely by cutechess-cli?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants