dje-dev / Ceres

Ceres - an MCTS chess engine for research and recreation
GNU General Public License v3.0
153 stars 23 forks source link

Typo bug in Position.CheckDrawBasedOnMaterial #48

Closed BrianH12345 closed 3 years ago

BrianH12345 commented 3 years ago

Line 197 of Position.cs appears to contain a typo. One of the bishopCountThem's should be an Us:

else if (bishopCountThem != 2 || bishopCountThem != 2) // two bishops same side may not be a draw

dje-dev commented 3 years ago

Thank you for the careful reading of the code and identifying this bug. This has been fixed and will soon be pushed.