Use the arrow keys to move. The number shows how many mines are in the 8 adjacent tiles. The goal is to get to the green square. If you step on a mine you lose.
There are many versions of this game, this one is based off of the version on my calculator. This is largely a strategy game.