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

Incorrect calculation of the next move #6

Open
alexiwonder opened this issue May 24, 2023 · 3 comments
Open

Incorrect calculation of the next move #6

alexiwonder opened this issue May 24, 2023 · 3 comments

Comments

@alexiwonder
Copy link

Hi Gavin,
Thanks so much for developing this tiny but powerful engine.

I have been enjoying using it, however, today I noticed that the engine calculates the next move of the below position very much incorrectly.
Position: 2k4r/2p1bpp1/p7/1p2n2b/3pPP2/P2P3q/1PP4N/R3QRK1 b - f3 0 24

I checked it with the two engines below and they didn't suggest that move even with the lowest rating (1300):

I also maxed "thinking time", but got the same result.
I am not sure if you answer this type of question, but thought I ask anyway since it looks like a bug.

Appreciated!

@tissatussa
Copy link

tissatussa commented May 26, 2023

I also maxed "thinking time", but got the same result.

i didn't .. i guess you used the BetaFish version at https://betafish.gavinong.com .. it gives Ng6 at 1 second thinking time, but Qxh2+ at 3,5,10 sec .. could it be different for you because our hardware / connection differs ? I doubt it .. you didn't mention your BetaFish moves .. i just did an analyses with the new and very strong Shashchess GZ NNUE engine, for reference :

betafish_strange_move

indeed, many other moves are better, they even lead to a quick mate, but both Ng6 (11-th) and Qh2+ (12-th) appear in this top-12 list, being clearly winning also .. it seems this position is much better for Black in many variations .. so, should BetaFish choice really be considered a bug ?

@alexiwonder
Copy link
Author

alexiwonder commented May 27, 2023

To see where Qh2 could lead, I had betafish to play against itself. It turned out that it would lead to checkmate after notably long trails of moves.
So, fair enough; it is not a bug.
However, I still feel it can be improved.
@Strryke Any chance you can have a look?

@Strryke
Copy link
Owner

Strryke commented May 28, 2023

Hey, thanks for this, it's nice to know people are playing around with Betafish.

I went to take a quick check, basically, it's not a bug — the engine just doesn't look far enough to see the mate in 8 at a lower thinking time and thus doesn't find a better move than Ng6.

I maxed out the thinking time and the engine finds the best move at Depth 7, while at a thinking time of 1 second, the engine only manages to reach depth 4 and decides Ng6 is the best move. I've attached the logs below.

image

Thanks for the question! I always love revisiting this project.

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

3 participants