Questions tagged [minesweeper]

Minesweeper game is an abstract puzzle game, where numbers give information about adjacent mines.

Filter by
Sorted by
Tagged with
15
votes
1answer
452 views

Clojure Minesweeper from scratch

In order to exercise and learn Clojure, I decided to write a simple Minesweeper game from scratch. I'd consider myself as a Clojure novice and would be thankful if somebody could do a review or give ...
7
votes
1answer
1k views

Board-tile game click event OOP pattern

This is actually an old 'problem' that I never really knew how to improve, but I'm wondering now if there is a better approach for this problem. I'm creating MineSweeper with Java and struggling with ...
13
votes
2answers
3k views

Exact Replica of Windows Minesweeper in Java

I am a beginner programmer trying to self learn how to write a code. To improve my skills, I'm currently working on a project to create an exact replica of windows minesweeper. It is written in JavaFX ...
1
vote
1answer
708 views

Minesweeper in JavaScript

I have written Minesweeper in JavaScript. Using OO-Approach. Cell class describes a cell in the grid. Cell.t property tells ...
11
votes
2answers
40k views

Beginner Minesweeper game

I wrote a basic Minesweeper game for practice. It consist 3 classes: Main - only as launcher Cell - controling behavior of single cell Board - coordinating behavior of cells. The hardest part for ...
1
vote
1answer
545 views

Minesweeper algorithm that works within O(1) space complexity

For minesweeper algorithm, instead of the most obvious BFS or DFS solution, I want a O(1) space solution. First of all, I'll explain how the program works. I will pass in a 2D array, with 1 ...
7
votes
2answers
2k views

Android App Interview (Minesweeper game)

I recently did an Android Minesweeper app for a pre-interview coding challenge before I could talk to any engineer and was rejected. This feedback was given but I'm not sure on some of it. ☺︎ Game ...
29
votes
1answer
984 views

Javascript Minesweeper (with Stack Snippets!)

As Stack Snippets are live on Code Review now, I wanted to do something quick in it as part of rolfl's challenge on meta. And when you make things quick, they probably get dirty. And when things get ...
33
votes
3answers
958 views

Advanced and Detailed Minesweeper Probabilities

In an earlier question, I showed my code for calculating the mine probability for each and every field in a Minesweeper board. But it doesn't stop there. In that very same Minesweeper Analyze project, ...
23
votes
1answer
6k views

Python - Minesweeper

I'm new to Python (and generally to programming), and I have recently written this Minesweeper game: ...
55
votes
3answers
3k views

Analyzing Minesweeper Probabilities

Calculating probabilities in Minesweeper might sound like an easy task, but I've seen so many probability calculators that's either incorrect, horribly slow, or with ugly code (or all of them) so I ...
6
votes
1answer
32k views

Minesweeper in Python

I have recently written this Minesweeper game in Python: ...
2
votes
1answer
434 views

Minesweeper, Bombcount method

I have a method which checks all of its surrounding squares and returns the number of bombs around it. It uses a long list of if statements, which is pretty ugly ...
5
votes
1answer
1k views

Minesweeper grid representation + calculating neighbor-sums

I'm trying to get better at Python and would like a critique. Problem statement: Accept a 2D grid containing 1's and 0's (1 being mine locations) and print a solved sum grid (the way the final ...
3
votes
1answer
780 views

Minesweeper clone in jQuery

This was my first attempt at writing object-oriented JavaScript. It's a Minesweeper clone in jQuery. I thought I had done an OK job, but I've just received some feedback stating that it wasn't written ...
2
votes
2answers
534 views

Minesweeper clone using Swing

I'm coding a Minesweeper clone using Java and Swing. For my current knowledge, I manage to keep it working but two things are giving me nightmares. Namely, I have a VERY repetitive code so I suppose ...
4
votes
3answers
16k views

Minesweeper Code

I created some code for Minesweeper but I need help going over it. I would like if someone could go over it and point out anything (repeating code, code being called multiple times when not needed, ...
2
votes
1answer
8k views

Text based 2D Minesweeper

I got my 1 dimensional program to work just fine so I figured I just need a few tweaks to get the 2D to work as well. It's not fully completed but it would helpful to know if I am on the right track ...

1
2