public virtual bool WouldBeInCheckAfter(Drop drop, Player player) { var copy = new CrazyhouseChessGame(GetFen()); copy.SetPieceAt(drop.Destination.File, drop.Destination.Rank, drop.ToDrop); return(copy.IsInCheck(player)); }
public virtual bool WouldBeInCheckAfter(Drop drop, Player player) { CrazyhouseChessGame copy = new CrazyhouseChessGame(GetFen()); copy.ApplyDrop(drop, true); return(copy.IsInCheck(player)); }