Questions tagged [minesweeper]

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

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

Recreating Minesweeper

First, I have to say that this game lacks 5 features that I don't care: Flags Chording Timer Actual mouse movement Good graphics When starting the program, the player is meeted with a "Choose ...
Le_Square's user avatar
6 votes
1 answer
304 views

Minesweeper game implementation in (vanilla) JS

I decided to write my own version of a Mine Sweeper game as an excuse for a Javascript/HTML/CSS project. Just to make the question self-contained: Mine Sweeper is a game with a rectangular board ...
Tomerikoo's user avatar
  • 312
2 votes
1 answer
655 views

Minesweeper using SFML with C++

Hi, I am making a Minesweeper game using SFML 2.0. I am just a beginner in C++ and started using the framework for 2 weeks now, so it is safe to say I may have made lots of mistake especially when it ...
Allen's user avatar
  • 23
7 votes
2 answers
93 views

rustymines - a mine sweeping game with a shenanigan

I am learning Rust for about a week now. I just finished my first little working project, a mine sweeping game. The game comes with a little extra feature, namely old, broken (rusty) mines, that will ...
Richard Neumann's user avatar
2 votes
1 answer
77 views

Tkinter Minesweeper Clone V2

Intro Having spent quite a bit of time learning Python, I thought it was time to work on something. However, an Google search for "python projects 2022" came up with projects I had already ...
cold10's user avatar
  • 459
1 vote
0 answers
110 views

Minesweeper using Tkinter

So, I have completed a Minesweeper program in Python using Tkinter. A few questions: I feel I should convert this to Object-Oriented Programming. Any starting tips? Expanding on the above, I have way ...
cold10's user avatar
  • 459
2 votes
3 answers
529 views

Text Based Minesweeper in Java

I have been working on a text based minesweeper game in Java and I am looking for some ways to improve it. I worked through this project through JetBrains academy. I will attach the instructions of ...
Caleb Shank's user avatar
2 votes
0 answers
94 views

Minesweeper program using Tkinter

I have complete my minesweeper game using Tkinter and would like to know ways to improve. I also have a question for extra features: does anybody know a way to have a opening start, like google ...
cold10's user avatar
  • 459
5 votes
2 answers
444 views

Mine sweeping game for the terminal

Over the holidays I was bored due to lockdown and implemented a mine sweeping game for the terminal. Any feedback is welcome. ...
Richard Neumann's user avatar
2 votes
1 answer
145 views

Display routine for Minesweeper on PyQT5

I'm trying to recreate minesweeper in python with PyQT5. I have this function that updates the GUI by using nested for loops (one for column, and one for row) to check each cell in a 19x19 area to ...
MEMESCOEP's user avatar
9 votes
1 answer
896 views

Minesweeper implementation java

I'm writing Minesweeper implementation in Java. I have little experience yet, so I need some advices: about improving code, making it more readable and flexible about coding style about common ...
Maxim Voloshin's user avatar
9 votes
2 answers
769 views

Yet another minesweeper field calculator

The task is to read in a data file containing a representation of a rectangular array with '*' signifying a mine and '.' signifying the absence of one. Each such array is preceded by a row and column ...
Edward's user avatar
  • 65.3k
5 votes
1 answer
206 views

C++ Mine Sweeper Attempt

Saw this question and though I wanted to try. So my version of reading Mine Sweeper: For the Online Judge Some Utilities Classes ...
Martin York's user avatar
  • 94.3k
4 votes
2 answers
462 views

Online Judge 10189: Minesweeper (C++)

I'm new to C++ (not to programming in general), which I want to learn to participate in some programming contests. I solved the Online Judge Minesweeper Challange. Since I'm not familiar with C++, any ...
Emaro's user avatar
  • 178
14 votes
4 answers
10k views

A simple Minesweeper in Python

In my coding interview for a company, I got the question to write a Minesweeper game. I did not manage to finish the game in 1 hour at that time, so now I have written it again after the interview. ...
Felicity's user avatar
  • 141
4 votes
1 answer
632 views

Minesweeper in haskell

I have recently been learning Haskell, and wrote a minesweeper project as an exercise. Here is link to the project. Basically the code is separated into two parts, the pure part (no monads) and impure ...
saxo's user avatar
  • 43
5 votes
2 answers
452 views

Text Based Minesweeper in C

This is my first C program. The code works, however I'm not yet familiar with how to write idiomatic C. How should I improve this? ...
qwerty's user avatar
  • 351
2 votes
1 answer
734 views

Minesweeper in C# Console - Board Implementation

I created a simple minesweeper game in c#, and wanted to know how to improve it. I didn't really understand how to make it so everything besides the zero opens up. How would I make my class Board ...
PARTH's user avatar
  • 145
5 votes
1 answer
794 views

My Minesweeper implementation in Java

Can you please review my Minesweeper implementation in Java? ...
uncommon_breed's user avatar
2 votes
0 answers
627 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 ...
SA.93's user avatar
  • 123
7 votes
2 answers
1k 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? ...
Program beginner's user avatar
5 votes
2 answers
415 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 ...
hmukhe's user avatar
  • 53
6 votes
1 answer
1k 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, ...
user avatar
4 votes
1 answer
550 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 ...
yuga's user avatar
  • 81
5 votes
1 answer
114 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 ...
Martin Thoma's user avatar
  • 1,195
4 votes
1 answer
2k 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 ...
uchaosis's user avatar
7 votes
1 answer
818 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 ...
gordkyn's user avatar
  • 73
9 votes
2 answers
343 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 ...
dan-el's user avatar
  • 93
1 vote
2 answers
982 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 ...
Miron's user avatar
  • 418
2 votes
2 answers
311 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 ...
Koray Tugay's user avatar
  • 1,547
5 votes
2 answers
3k 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 ...
Stijn Hendriks's user avatar
2 votes
2 answers
8k 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 ...
porridgewithraisins's user avatar
4 votes
1 answer
841 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. ...
PythonFan3362's user avatar
6 votes
1 answer
2k views

Made a minesweeper game in Python

Overall, I feel that my code is a bit verbose. game.py ...
Daniel's user avatar
  • 213
7 votes
1 answer
392 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 ...
Jam's user avatar
  • 347
3 votes
0 answers
152 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. ...
Sean's user avatar
  • 111
3 votes
0 answers
148 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 ...
Biketire's user avatar
  • 131
8 votes
1 answer
314 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 ...
yuri's user avatar
  • 4,448
7 votes
3 answers
12k 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 ...
vakus's user avatar
  • 276
10 votes
3 answers
4k 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 ...
EndreoT's user avatar
  • 101
4 votes
1 answer
5k 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 ...
Khepu's user avatar
  • 43
2 votes
1 answer
330 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....
Dexter Thorn's user avatar
  • 2,154
6 votes
2 answers
8k 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 ...
betseg's user avatar
  • 255
10 votes
1 answer
3k 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 ...
Nathan Hall's user avatar
2 votes
1 answer
100 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 ...
Douglas's user avatar
  • 859
7 votes
4 answers
4k 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 ...
Oliver530's user avatar
1 vote
1 answer
8k 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 ...
ym123's user avatar
  • 11
2 votes
0 answers
235 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 ...
user3769323's user avatar
6 votes
1 answer
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 ...
TheLearner's user avatar
7 votes
1 answer
4k 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 ...
Nigel Overmars's user avatar