Encoded Mines

Put a mine in some blank squares. Each letter stands for a different number, which indicates how many mines are in the horizontally, vertically, and diagonally adjacent squares. The code will differ from puzzle to puzzle.


1.
2.
3.
4.
5.
6.

7.
8.
9.
10.
11.

12.
13.
14.
15.
16.

17.
18.
19.
20.

The solutions are here.