Chess

This is from a game that world chess champion Magnus Carlsen lost against another grandmaster, Luis Paulo Supi. Carlsen resigned after he saw white's next move. Can you find the move and beat Carlsen?

This is the chess scene from The Sorcerer's Stone where Ron, Harry, and Hermione each play as chess pieces. Ron is the knight on g5, Harry the bishop on a3, and Hermione is the rook on f8. Can you figure out the sequence of moves Ron makes where he eventually sacrifices himself such that Harry and Hermione remain safe and black wins the game?