Vadman97 / GolangChessAI

Go Chess AI - Exploring Parallel Search Techniques with a Novel Golang Chess Engine
GNU General Public License v3.0
8 stars 3 forks source link

Optimize Checkmate, Stalemate #67

Closed Vadman97 closed 5 years ago

Vadman97 commented 5 years ago

instead of IsInCheckmate and IsStalemate calling GetAllMoves, write HasMoves function that breaks on first move - most of the time we have a move so it will return much faster