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

Invalid move by bot #1

Closed
matteodelabre opened this issue Oct 4, 2020 · 1 comment
Closed

Invalid move by bot #1

matteodelabre opened this issue Oct 4, 2020 · 1 comment

Comments

@matteodelabre
Copy link

I just played a game in easy mode and the program crashed with the following log:

thread 'main' panicked at 'Invalid move by bot: Move not found as possibility', src/scene/game_scene.rs:572:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Bot thread is terminating
Bot thread should terminate

I guess that the bot is trying to make an invalid move, or that the code which detects whether a move is valid has a bug. Unfortunately I did not keep track of all the moves. Here is a screenshot of the state in which it crashed (black plays).

screendump

LinusCDE added a commit that referenced this issue Oct 4, 2020
@LinusCDE
Copy link
Owner

LinusCDE commented Oct 4, 2020

Thanks for the report. I'm a real noob in chess to be honest. So it's really nice to have some testing regarding this.

I have now removed most limitations on what a bot can do. The user usually can't to moves that result in him getting checkmated or other stupid stuff (aka only the possible moves when clicking a chess piece).

My guess is that your bot tried to do that. While not illegal it is stupid, but I trust the bot to do valid moves (as long as it doesn't screw up the entire board state).

The release will be 0.3.2

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