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

learn more… | top users | synonyms

7
votes
1answer
102 views

My minesweeper implementation in Javascript

I'm beginner coder and I would like to request for critique review of my minesweeper implementation. Game was made using bootstrap 3 and game board itself is a simple html DOM table. Game is complete ...
4
votes
2answers
800 views

Minesweeper C++

This is my improvement of a minesweeper game I took from the internet, which I am quite proud of. Nevertheless I am willing to hear your opinions, suggestions, and comments. ...
4
votes
2answers
57 views

Flood-clearing routine for a JavaFx Minesweeper

I really hate copy and pasting my code from one method to another. It signals something in my brain, "This could be done either more efficiently or more readable". This is used in a minesweeper ...
7
votes
1answer
95 views

Checking for surrounding mines

Am trying to create a minesweeper game, I have the following code which has to many nested ifs, I want to change the code to take out the nested ifs and make it better to read. But I am stuck on how ...
0
votes
2answers
66 views

Minesweeper, python Tkinter, Checking close by tiles

Is there any smart way to compress the following code: ...
3
votes
1answer
41 views

Deploying treasure in 4×4 board and finding them in Python

Before starting I would like to say that I just made this program after studying python for 5 hours for the first time so I am totally new to this programming language. This program tries to create ...
3
votes
0answers
137 views

Simple minesweeper game in JavaScript

I created a simple minesweeper game as I am trying to get my hands dirty in JavaScript. I have tried to use the oops while doing this. I am posting 3 files: index.html minesweeper.js minesweeper....
11
votes
2answers
150 views

Minesweeper implementation

Please review my implementation of the Minesweeper game Kata. Any and all feedback will be much appreciated. I would love to hear your feedback on readability, simplicity, performance, and any code ...
12
votes
2answers
135 views

Minesweeper: how many mines are near?

Minesweeper in Ruby (from exercism.io): Write a program that adds the numbers to a minesweeper board. Minesweeper is a popular game where the user has to find the mines using numeric hints ...
6
votes
2answers
164 views

ASCII art minesweeper clone

I wanted to code a small ASCII art minesweeper clone, to see what it looked like and how much code it needed. The result is not so bad, under 80 new lines of code in total. It looks kinda readable to ...
4
votes
2answers
149 views

Python 3 Minesweeper

I just want some opinions/tips on how to improve. ...
15
votes
1answer
297 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
266 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 ...
12
votes
2answers
520 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
112 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
6k 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
175 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 ...
6
votes
2answers
991 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 ...
25
votes
1answer
616 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 ...
25
votes
3answers
486 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, ...
16
votes
1answer
1k views

Python - Minesweeper

I'm new to Python (and generally to programming), and I have recently written this Minesweeper game: ...
37
votes
3answers
2k 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 ...
4
votes
1answer
9k views

Minesweeper in Python

I have recently written this Minesweeper game in Python: ...
2
votes
1answer
208 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 ...
4
votes
1answer
379 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 ...
2
votes
1answer
597 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
350 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
13k 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
3k 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 ...