JayPay108 / Minimax-Chess-AI

Chess engine and AI written in C++ using minimax
3 stars 0 forks source link

Minimax is currently incorrect #2

Closed JayPay108 closed 3 years ago

JayPay108 commented 3 years ago

The minimax algorithm for this function is currently incorrect and will produce very unexpected (seemingly random) results at the moment. The chess engine works fine, but the AI is not functioning correctly

JayPay108 commented 3 years ago

Fixed.

The board evaluation function will evaluate the board for whichever color has the current turn. The minimax function was not accounting for this.