Questions tagged [minesweeper]

This challenge is directly related to solving, generating, or otherwise working with the minesweeper game.

Filter by
Sorted by
Tagged with
25 votes
9 answers
3k views

Play 1D minesweeper

Your input is an array of integers in the range [-1,4]. An array element of -1 means that there might be a bomb in that position....
user avatar
  • 6,765
17 votes
8 answers
667 views

Recover boolean cells from windowed sums

Background In Minesweeper, you will often encounter a horizontal or vertical wall of one's and two's (not yet revealed cells are marked as ?): ...
user avatar
  • 64.5k
32 votes
21 answers
7k views

What surrounds my Minesweeper tile?

Minesweeper is a puzzle game where mines are hidden around a board of nondescript tiles with the goal of identifying the location of all mines. Clicking on a mine loses the game, but clicking on any ...
user avatar
  • 913
5 votes
1 answer
790 views

Minesweeper Wars [closed]

We've had problems to generate minesweeper games. We've had problems to solve these minesweeper games. Now... It's time to battle other people on a minesweeper game! Your program must be run in Java....
user avatar
  • 40.3k
31 votes
7 answers
2k views

Can I sweep the mines?

Minesweeper is a popular puzzle game where you must discover which tiles are "mines" without clicking on those tiles. Instead, you click on nearby tiles to reveal the number of adjacent ...
user avatar
  • 57.3k
55 votes
18 answers
4k views

Fill in the Minesweeper clues

Minesweeper is a popular puzzle game where you must discover which tiles are "mines" without clicking on those tiles. Each tile is either a mine (represented by *) ...
user avatar
  • 57.3k
19 votes
8 answers
1k views

Minesweeper At Work

Everyone knows the old minesweeper game that shipped with Windows XP. It's a simple grid with a 9x9 matrix of cells containing either a number (indicating how many mines are adjacent to it) or a mine. ...
user avatar
  • 1,249
19 votes
3 answers
2k views

Calculate the 3BV of a Minesweeper Board

The 3BV of a Minesweeper board represents the minimum number of left clicks required to solve the board if you already know the solution. It stands for "Bechtel's Board Benchmark Value". ...
user avatar
  • 23k
34 votes
4 answers
3k views

Invert a Minesweeper Board

Minesweeper is a popular computer game that you have probably wasted time playing where you try to reveal the cells that are mines in a rectangular grid based on hints of how many neighboring mines ...
user avatar
34 votes
10 answers
2k views

Verify a Minesweeper board

Your goal is to check whether a completed Minesweeper board is valid. This means that each number is a correct count of mines in cells adjacent to it, including diagonals. The board does not wrap ...
user avatar
  • 138k
6 votes
1 answer
2k views

Optimal Minesweeper on the Largest Board

Overview: Your challenge is to write a program that will play minesweeper optimally, giving the best move in any position. Moreover, you must do this on the largest board possible. Game details: ...
user avatar
  • 41.4k
35 votes
1 answer
3k views

Minesweeper Solver

We already generated Minesweeper fields, but someone really has to sweep those generated mines before PCG blows up! Your task is to write a Minesweeper Solver that is compatible with a slightly ...
user avatar
  • 1,940
12 votes
6 answers
2k views

Working Minesweeper

Similar to generating minesweeper grids, although the challenge is to make a working minesweeper grid. This will be longer code than normal (I think). more information on minesweeper. Minesweeper ...
user avatar
  • 165
17 votes
17 answers
4k views

Generating Minesweeper grids

Minesweeper is a logic game found on most OS's. The goal of the game is to determine where the mines are on a grid, given numbers indicating the number of mines around that spot. Given a grid size, ...
user avatar
  • 4,224