It works up to the endgame but it cannot checkmate because it only knows checks and checkmate combinations not a e.g. queen and king checkmate. Can somebody give me a code or the concept? Also the code makes it always stalemate.
Just have a stalemate checker before running the move. My chess computer has a simple check to see if there are any legal moves, and if no, just see if they are in check. If yes, it’s mate, if no, stalemate! If you don’t want it to stalemate, run the checker if it comes up positive, see if we’re winning or losing (if we’re losing a draw would be nice) and if we’re winning remove that move from the list of candidate moves and re-choose our move.
Of course you would have to tailor that to however you’re thing works, but it’s a good concept.
That works for a draw but like, it can’t checkmate cuz I am low on memory I have like 10 percent. I don’t want to do a scenario check. It can’t checkmate cuz like It checks and doesn’t corner the king in.
I just READ the title and im confused
Im tryna make stockfish.
This may be useful in understanding.
In gimkit! of all things
Stockfish the best chess bot ever remade in gimkit
I understand scratch or code.org but why gimkit
Coughs in Its not impossible and i’m bored,