[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]
Single Comment
As I predicted, your opponent is playing Black. The condition for checking whether Black could promote was missing a minus sign. I have fixed that, and I have also modified the code to handle Pawn promotion automatically.