This is really cool, I lost to the AI because I'm terrible at chess but it's fascinating to see how smart the computer is. What was the hardest part about building the AI?
Viewing post in Chess Kind Of jam comments
Thanx the AI isn't that smart, it defiantly could do with improvements. At first, the AI just picked just random movements. I then enabled it to run through the opponent's possible moves and created a value on the move by the value piece, positive if it could capture and a negative if the oponent could take it. After that, I ordered the list of moves by value and pick a random move out of the highest value moves. I'm still not sure if that's actually working correctly though.