Questions tagged [minesweeper]

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

Filter by
Sorted by
Tagged with
26 votes
9 answers
4k 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....
AnttiP's user avatar
  • 7,878
17 votes
8 answers
674 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 ?): ...
Bubbler's user avatar
  • 75.7k
32 votes
22 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 ...
aoemica's user avatar
  • 923
5 votes
1 answer
809 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....
hyper-neutrino's user avatar
  • 42.2k
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 ...
DJMcMayhem's user avatar
  • 59.1k
57 votes
19 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 *) ...
DJMcMayhem's user avatar
  • 59.1k
20 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. ...
Aaron's user avatar
  • 1,259
20 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". ...
mbomb007's user avatar
  • 23.3k
34 votes
7 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 ...
Calvin's Hobbies's user avatar
35 votes
11 answers
3k 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 ...
xnor's user avatar
  • 145k
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: ...
isaacg's user avatar
  • 42k
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 ...
TimWolla's user avatar
  • 1,950
13 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 ...
EAKAE's user avatar
  • 175
19 votes
18 answers
5k 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, ...
beary605's user avatar
  • 4,350