Questions tagged [minesweeper]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
44 views

Feedback JavaFX code - MineSweeper using SceneBuilder

I've learned JavaFX recently (with Scene Builder) and made a MineSweeper game, would love to receive feedback and tips for improvement! Thanks. Below is mines class, I've commented out some lines for ...
7
votes
2answers
658 views

Minesweeper BombCounts

I have a method which checks all of its surrounding squares and returns the number of bombs around it. But it's really long code and ugly, so can it be shorten? ...
5
votes
2answers
81 views

Pygame Minesweeper Clone

I'm still a relative beginner to coding and I would like some feedback on my Minesweeper clone written in Python using Pygame for the graphics. I'm wondering if it would be beneficial to use classes ...
6
votes
1answer
292 views

Minesweeper with GUI

I created the famous Minesweeper-game in Java, for which I used java-swing to create the GUI. Here's the code: Control.java: This class contains the main-method, ...
4
votes
1answer
107 views

C# MineSweeper Game using winform

I designed a game with trying to use solid principles. What changes should I do for making program more extensible, readable. Thanks in advance. Cell class ...
5
votes
1answer
45 views

Python - CLI Minesweeper

I've written the following single-script minesweeper console game and would appreciate your feedback! What I'm interested in: Enums: I think the usage of Enums could be better. It feels weird that I ...
4
votes
1answer
284 views

Minesweeper - Python 3 (beginner)

I’ve just created Minesweeper game, which work perfectly fine (for me). Any suggestions on how to improve this code would be greatly appreciate, in terms of: Object-oriented Array Error handling ...
7
votes
1answer
310 views

Minesweeper Implementation c# winforms

I made a minesweeper game in c# as a method of studying, and right now its fully operational. I tried to use inheritance, recursion, and other fundamentals as clean as possible. Also I tried to use ...
9
votes
2answers
141 views

Minesweeper Javascript (yes, another one)- JS Beginner, fully functional incl HTML and CSS

I created my first JavaScript program and I feel it's all over the place. I just started it without thinking too much about it. Now, I am quite sure I should have used OO style. Also, it seems there ...
1
vote
2answers
172 views

Minesweeper game for the console

You can set any size of the field and any number of bombs. I think I got a pretty flexible program again(Tic tac toe game for the console). What do you think about the code? I would like to know if I ...
2
votes
2answers
141 views

Yet another Minesweeper implementation (in Java)

Here is my take on Minesweeper in Java. Any feedback is welcome regarding readability, design or anything really. Cell.java ...
5
votes
2answers
1k views

Minesweeper game using Winforms

I made a Minesweeper for school and it works already. The only problem I have is that I need to optimize one part of my code but I have no idea how. The code below is for the whole program. The second ...
2
votes
2answers
2k views

Minesweeper game in Java using Swing GUI

I created a Java Swing Minesweeper, for which I would like some feedback. Note : I'm just in high school so please excuse any 'dumb' ways I may have coded certain segments. Any tips or books on how ...
3
votes
1answer
394 views

Python 3 minesweeper tkinter game

I have just finished my minesweeper game using tkinter and would like to know how I could improve my program. ...
6
votes
1answer
1k views

Made a minesweeper game in Python

Overall, I feel that my code is a bit verbose. game.py ...
7
votes
1answer
279 views

Minesweeper library for any GUI

A Minesweeper library in C#. To be included with any GUI stack. Did some breakpoint tests and unit testing, seems to work fine. I'm asking if the code makes sense to everyone, and if there can be ...
3
votes
0answers
104 views

Minesweeper game loads very slowly from the Start Menu

I'm quite a beginner with Java and just this month started learning about GUI and JFrame so naturally the first thing I wanted to do was build a Minesweeper Game. ...
3
votes
0answers
123 views

Minesweeper exercise exercism rust

Please review my solution to the minesweeper exercise in rust. Taken from this link at exercism. Overall I'd like to know what I can improve when it comes to performance (what if I had a board from ...
8
votes
1answer
207 views

A mine sweeping game for the terminal

This is a very simple (no ability to flag tiles) mine sweeping game written in Python and designed for a terminal. Due to its limitations it is not recommended to change the board size as that will ...
7
votes
2answers
6k views

Minesweeper in Python Tkinter

Out of boredom I decided to make simple minesweeper in python. I decided to do it using only libraries which are included in standard installation on Windows. I have overall been coding in Python for ...
10
votes
3answers
3k views

Python 3 simple Minesweeper game using tkinter

I am relatively new to programming, and I wish to use this simple minesweeper game in a portfolio. A few questions: Currently, game setup gets progressively slower with each reset button call, and ...
4
votes
1answer
2k views

Minesweeper JavaFX app

This is my Minesweeper JavaFx app. It is working without any weird bugs, at least none that I found. I am not too concerned about the way it looks either, the main reason I post this here is to get an ...
2
votes
1answer
244 views

Textual Minesweeper in Java

I have programmed a textual Minesweeper-Game in Java. For me it was much harder than I expected. I would be happy if you have tips how to improve the design! The program can be tested here Field....
6
votes
2answers
5k views

Minesweeper in C

I was bored at school, and it was forbidden to use phones in classes; so I began writing a minesweeper game on my book and tested it on a simple compiler on my phone and copied into my computer after ...
10
votes
1answer
2k views

Creating minesweeper levels to C# console

I recently did a technical test for a potential coding job. In short, the test asked that I write code that would generate random minesweeper levels to console of specified grid dimensions and mine ...
2
votes
1answer
84 views

Minesweeper field marking

I just did an interview where the last challenge was to write a function that reads a minesweeper matrix from a file and marks how many bombs there are around each cell. I had 20 min and had a ...
7
votes
4answers
3k views

A Minesweeper implementation in Java

As I'm working with a proprietary programming language in my daily job, my java skills unfortunately missed out. In order to change this I am currently working on a minesweeper clone. So far, I have ...
1
vote
1answer
3k views

Beginner Java Minesweeper Game

I made a Minesweeper game in Java 8, but I am not sure if the code is any good. Comments and questions are in the code. Here's the code on Github (not commented though). Game.java: Main Class of ...
2
votes
0answers
166 views

LeetCode Minesweeper solution in Ruby

This is my solution to this LeetCode problem. Essentially you want to get the next board state for a Minesweeper game. All test cases passed and the submission was accepted on leetcode. The ...
6
votes
1answer
2k views

Minesweeper implementation in Java

I am nearly complete with my Minesweeper game but the rough idea is done. My approach is with three classes. One is the tile class which represents a tile on the gameboard. The other is the actual ...
7
votes
1answer
2k views

Minesweeper in C++ using objects

After taking a course in C++, I have written my first program and I'm looking for some feedback both on coding style and maybe algorithmic improvements. The code can also be found at GitHub. It ...
4
votes
1answer
2k views

Simple Minesweeper using OpenGL / GLUT

I'm trying to make minesweeper similar to windows 3.1 minesweeper by using OpenGL / GLUT. The game still in early stage but playable. I would like to know, how can I improve it. EDIT 1: i added ...
4
votes
2answers
1k views

C++: Minesweeper Game v2

In my implementation I have used Cell as an object to represent each cell in the board. I've used Flood Fill algorithm for finding the adjacent empty cells in the ...
5
votes
1answer
516 views

My solution to a competitive programming problem (UVA 10189, Minesweeper)

This is one of my first competitive programming solutions. The problem it solves is described here; basically, you get a series of grids ("fields"), where . means "...
9
votes
1answer
510 views

Minesweeper game for Node.js

I recently graduated from a coding bootcamp, and while it was great for the most part - I feel like it was lacking in learning good coding technique. I recently built this Minesweeper game for node....
8
votes
1answer
624 views

Minesweeper JavaScript Prototype

I am looking for some review of a Minesweeper game that I made as my first JavaScript program. What I have here is simply the prototype for the minesweeper game while I handle the actual grid in a ...
6
votes
1answer
1k views

Minesweeper project

I wrote out a Minesweeper clone for a compsci project. I'm concerned a lot about code efficiency - any suggestions on how I could streamline my code to make it more efficient? This is the repo for it,...
5
votes
2answers
10k views

C# Minesweeper project

I made a very simple Minesweeper using C# and WPF. My method for checking the adjacent mines for buttons is pretty long and could use some improvements, so how would I make it shorter and more "...
8
votes
1answer
20k views

Minesweeper in C++

I would like general ideas on improvement for this implementation of Minesweeper I wrote in C++. I am not really good in OOP yet, so I want ideas about how I can refactor the code by adding objects (...
3
votes
1answer
35 views

Search for everything at a tile in Minesweeper

I'm writing a Minesweeper clone. I needed a function that returns everything located at a certain tile, and ended up with an atrocious mess. I'd like help making it cleaner and more idiomatic. The ...
7
votes
1answer
460 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 ...
5
votes
3answers
3k 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
151 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
1k 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
330 views

Minesweeper, python Tkinter, Checking close by tiles

Is there any smart way to compress the following code: ...
3
votes
1answer
360 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
5k 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.css ...
11
votes
2answers
778 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
743 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
461 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 ...