Tap to open a square. Tap Flag mode (or long-press / right-click) to flag a mine. Numbers show how many mines touch that square.