Then I tried to complete the match with computer đź’», so I setup the board customely, but it was castling which it should not because my friend was in check before and moved the king and again repositioned it.
So how do I make computer understand that.