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

no response when losing? #2

Closed
akinell opened this issue Oct 15, 2019 · 3 comments
Closed

no response when losing? #2

akinell opened this issue Oct 15, 2019 · 3 comments

Comments

@akinell
Copy link

akinell commented Oct 15, 2019

Error Description:

When setting up a position which is very bad for lozza (i.e. a rook and a queen down) then lozza won't send a bestmove response. Instead, only the following output is sent:
info nodes 0 time 0 nps 0
info hashfull 0

I am not entirely sure the issue is related only to strongly losing positions.

Test Case:

lozza.js build 1.18 in a WebWorker on Chrome.

messages:
uci
ucinewgame
position fen rnb1k3/pppppppp/8/8/8/4P3/PPPP1PPP/RNBQKBNR b KQkq - 0 1
go movetime 500

@op12no2
Copy link
Owner

op12no2 commented Oct 15, 2019 via email

@akinell
Copy link
Author

akinell commented Oct 15, 2019

You are right of course!
I was confused because the fen was generated by chess.js and its validate_fen() method returns "valid: true". Also stockfish.js handles the situation gracefully.

The bug belongs to chess.js, since it doesn't update the castling rights after removing rooks and there is no way to set castling rights programmatically. It is actually listed as a bug in their readme.

thank you for your quick response!

@akinell akinell closed this as completed Oct 15, 2019
@op12no2
Copy link
Owner

op12no2 commented Oct 15, 2019 via email

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