Closed sohang3112 closed 2 years ago
This closes Issue 38
This would fix the bug, but opens a new one. Following your implementation, the program would think the player plays with white, even if he chose black. So the AI would move first, but then the player can't play any black piece because the legal moves don't get correctly calculated.
Also i already pushed a fix.
Previously, in 2-Player Mode, AI would ask the player to make the first move when the player chose BLACK. This is wrong because WHITE always makes the first move.
This is fixed in this PR - now the AI makes the first move as WHITE when the player chooses BLACK.