If the square harbors a mine, the player loses. If instead a number (from 1 to 8) appears on the square, it specifies how many mines are present in the eight squares surrounding the numbered square. It's clear, for example, that finding a square numbered 8 means that all eight adjacent squares contain mines.