The goal in Minesweeper is to locate all mines in the playing field, mark them with a flag, and open all squares that do not contain a mine.