Chess-Challenge
Chess-Challenge copied to clipboard
Feature request: hasGameEnded()
This feature can be good for simplifying the search algorithms. This function will return true if the game has ended with a checkmate of draw (it doesn't matter). Otherwise, it will return false.
Combine it yourself? board.IsInCheckMate() || board.IsDraw()
Combine it yourself?
board.IsInCheckMate() || board.IsDraw()
isDraw works incorrectly
I suggest using board.GetLegalMoves().Length == 0