Mine Picker

Recommended levellevel
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.
  • Popular
  • New
  • Old
You must be signed in to leave a comment
josiah Level 0
yesterday, 04:44
i am new i am trying to code games
josiah Level 0
yesterday, 04:43
Edward Elric Level 0
13 November, 19:05
Under which folder do we create the GameObject class again?
Vincent Cheng Level 0
2 November, 19:18
My name is vincent nice to meet you all :)
Vincent Cheng Level 0
2 November, 19:17
hello everyone :)
Rom Level 9 , Paris, France
29 October, 16:44
franchement c'est chaud, perso j'en suis à 20 pomodoro et je viens d'arriver à la 10ième partie 😵🤪
Dmitri Level 12 , Seversk, Russia
15 October, 08:49
Actually, I don't think that it is correct to use the same number of flags as the number of mines. Using that knowledge you can determine the number of mines on the field beforehand.
Tina y Level 6 , Toronto, Canada
2 October, 21:56
My code for first stage passed, but however, there were no grids or anything upon running. It seems like the import statement is not getting recognized properly (engine is red). I'm sure it's something really silly but... What am I doing wrong?
Agent Smith Level 27 , Latvia
11 September, 13:30
Nice and easy mini-project to reinforce your lvl 5-10 skills. 👍
Monster 821 Level 10 , Heilbronn, Deutschland
27 August, 18:40
which level shoud I have, to create the Minepicker game?
Rich Level 14 , San Diego, United States
30 August, 06:18
tough question really. it depends on how well you are grasping the concept behind classes, loops, conditional statements and how they all play off each other. with a little research and a lot of patience you should be able to give it a go.