How is everyone else going about endgames and checkmates? #121
kittymuffin
started this conversation in
Ideas
Replies: 2 comments
-
EvilBot has a a simple check if one of it's next moves will result in a checkmate against opponent and if there is such a move it picks it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
board can return 2 booleans, isInCheck(), and isInCheckmate(), so when evaluating a move, check if isInCheckmate() is true and just go for that move. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I looked at Sebastian Lague's chess bot video but I don't get how he implemented checkmates. I tried to implement a similar thing that he did, but my bot won't do any checkmates at all :P. How is everyone else going about this?
Beta Was this translation helpful? Give feedback.
All reactions