The Art and Science of Minesweeper

I've been playing a lot of Minesweeper lately, particularly Minesweeper Clone, which records games and keeps detailed stats. As I play, my mind has wandered and I've been imagining arrangements of mines to answer certain questions, such as:

For any given number 1 to 8, is it possible to fill the minefield so that every cell is either a mine or that number?

As it turns out, the answer is yes. I created screenshots in Photoshop showing each layout. Each layout was designed to have as few mines as possible while still having every cell occupied by either a mine or a number. Roll your mouse over each number to view that layout. Note that the borders are infinite; that is, the pattern continues past the edges of the visible 16x16 field.

1 2 3 4 5 6 7 8


The layout for "7" was definitely the trickiest, and it ended up being the most complicated. Feel free to comment if you come up with a more efficient layout for one of the numbers.


  • Ryan
  • September 8, 2008
  • 3:10 pm
My first thought after seeing a few of them was "but what about the edges???". Then I went back and read the full post.

I do poorly on tests in school.
That's pretty awesome. Hadn't heard of Minesweeper Clone, but I'll check it out.
  • Ariel
  • September 8, 2008
  • 4:48 pm
That's actually quite awesome. Imagine actually getting something like 7 in a real game.
  • Blake
  • November 25, 2008
  • 4:34 pm
Now I challenge you to make one with all 9s! Muwahahaha!!
  • The8BitSquad
  • January 23, 2019
  • 10:43 am
is there a layout for the mines?
Please wait ...

There was an error fetching the requested dialog.