Skip to content

Bot thinks it's checkmating #185

Answered by WhiteMouse1
2tothe4th asked this question in Q&A
Discussion options

You must be logged in to vote

int.MinValue can retain its negative value even when multiplied by negative number.
To be sure there are no bugs like that, use large numbers as max/min values, i.e 99999 and -99999 correspondingly.
For chess evaluation purposes those numbers should suffice.

I had half of my day destroyed by the same problem.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@2tothe4th
Comment options

Answer selected by 2tothe4th
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants