Castling, en passant, promotion and checkmate detection — all of it. The computer searches ahead with alpha-beta pruning, so medium and hard actually think about your threats.