Open every square that isn’t a mine. Numbers show how many mines touch a square. Right-click or long-press to place a flag.
Press and hold a square for half a second to place or remove a flag.
No. Mines are placed after your first click, and never on or next to that square.