User

Mine Picker

Recommended levellevel
5+
About 10 years ago, an omen appeared in offices everywhere: if an employee is staring too intently at his screen and occasionally clicks with the mouse with the same intensity, he's most likely playing Minesweeper. For anyone who has forgotten, and for others who missed this era due to their age: Minesweeper is one of the most popular office games that shipped with Microsoft Windows. Even today, if you're sitting at a computer running this operating system, Minesweeper is either pre-installed (just type "Minesweeper" in the Windows search box) or you can download it free from the Microsoft Store. Many Linux builds, such as KDE and GNOME, also acquired similar games. Unlike most other "time killers", this game presents the perfect balances of logical moves and random moves, making Minesweeper very exciting and simultaneously... somewhat less pointless than other such games. So, we have a game board divided into squares. Some of them contain "mines", but we don't know how many there are or where they are. Our goal is to reveal all of the unmined squares without getting blown up. You reveal a square with a left click. If it doesn't contain a mine, then a number appears that represents the number of mines adjacent to the revealed space. Now you need to do some thinking and guess which cells can be revealed and which should be marked as mined. And so it continues until you win or explode. Windows developers created this toy to help humans learn to use the mouse (yes, there was a time when computers didn't have mice and you had to be content with just the keyboard). Actually, the history of Minesweeper stretches farther back than even Microsoft. Its predecessors were available on mainframes as early as the sixties of the last century… But we digress... Right now, we're talking about creating our own version of Minesweeper! The rules for our "probabilistic brainteaser" will be exactly those described above. We've already divided this difficult task into subtasks on CodeGym and we'll tell you what to do. Be brave.
Comments (44)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
赖卓成Level 0
9 September, 08:25
如果有中文网站就好了
masz3kLevel 15 , Lodz
18 August, 11:21
I feel like we should program these games from scratch not using codegym engine - we still know nothing about building frames and windows and it's hidden from us, which is most important thing while making games or software in my opinion. I hope that changes on higher stages of games...
Roshan BaghwarLevel 1 , Delhi
12 August, 06:44
Yeah... it worked!
Cherwin LegaspiLevel 1 , Makati
11 August, 16:19
It is working for me :D
Harvey RobertsLevel 13 , Helsinki
9 August, 09:25
Ha ha. It's working, for now.
Gabriella LaPlaceLevel 8 , Basseterre
10 August, 17:44
How did you get it to work?
Harvey RobertsLevel 13 , Helsinki
12 August, 16:03
Something was missing from the begining code and one of the Admins named Alex, corrected it for me,. Contact the admins from the chat Icon bottom write and let them check it for you, no one seems to reply here on the chat line.
Gabriella LaPlaceLevel 8 , Basseterre
12 August, 18:59
Thanks, one of the admins acting as character told me to add a folder, but that never worked so they sent me to the chat room. Thanks for telling me about this.
Gabriella LaPlaceLevel 8 , Basseterre
12 August, 19:05
My chat section has a chat for CodeGym but nowhere for me to talk to Administrators individually. Do you pay to use CodeGym or do you have a no subscription account that they let you use for free, like me.
Harvey RobertsLevel 13 , Helsinki
13 August, 11:27
I just used that bubble chat in the bottom right corner, and told them my problem.
ReginaLevel 41
13 August, 14:01
Here is the administration account John Squirrels or refer to our Help section when you face difficulties with the solutions of the tasks.
Gabriella LaPlaceLevel 8 , Basseterre
13 August, 18:17
Thanks
Gabriella LaPlaceLevel 8 , Basseterre
13 August, 18:17
I forgot that that was there since I have never used it.
Gabriella LaPlaceLevel 8 , Basseterre
14 August, 12:04
They told me to go to the Help section again.
Wafa Abbas#496668Level 0 , pakistan
6 August, 17:20
<h1>abbas</h1>
Gabriella LaPlaceLevel 8 , Basseterre
6 August, 12:27
Okay administrators at CodeGym, I think that you have an error in this question and need to edit it. I have a picture below. If you click it it opens.
ReginaLevel 41
6 August, 14:35
We'll check the issue and revert you asap. Thank you.
ReginaLevel 41
7 August, 09:13
The name of the package, which contains MinesweeperGame class, doesn't match the structure. Must be vs. You have
Gabriella LaPlaceLevel 8 , Basseterre
7 August, 17:37
I didn't realize that part of the task was making the folder in that area.
Gabriella LaPlaceLevel 8 , Basseterre
7 August, 17:39
I tried to create the minesweeper subfolder twice and it didn't save.
ReginaLevel 41
8 August, 15:23
If you still face some issues with this game, please post your inquiry in the section Help at our website.
yogesh joshiLevel 0
26 July, 11:31
HELLO
ItachiLevel 16 , Brooklyn
24 July, 10:18
guys is it posibble to instal the game for phone after completation
Harvey RobertsLevel 13 , Helsinki
21 July, 05:29
package com.codegym.games.minesweepergame; import com.codegym.engine.cell.*; public class MineSweeperGame extends Game { } Why does this fail!! I get this error..... "Be sure that the MinesweeperGame class includes the following import statement: import com.codegym.engine.cell.*;"