Click on a square to reveal it. Hover over a square and press space to flag itas a potential mine. Reveal all the non-mine squares to win.