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 (108)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Juan Dinner
Level 0
26 April, 14:36
how
泽源 陈
Level 6
25 April, 05:32
how to run this game in Intellij Idea, it only works on my website;
Alex
Level 41, Solar System
25 April, 07:02
Please read this article, which should help you set up IntelliJ IDEA correctly.
Kong
Level 1
24 April, 05:54
徐狗
null
Level 0, Suzhou
17 April, 08:06
it's a test for me to realise ...
kolan
Level 0
13 April, 12:29
i am kolan
Christopher Berg
Level 7, Germany
24 March, 21:17
possible to use Intelli J idea? how can i see what happens, when i writing the code?
irek
Level 0
17 March, 06:27


bastian
Level 1
7 February, 14:43
com/codegym/engine/cell/Minesweeper.java:4: error: class, interface, or enum expected public MinesweeperGame extends Game { // I d not understand this Message
Alex
Level 41, Solar System
7 February, 15:54
Please contact support (support@codegym.cc) with a screenshot of the entire code.
Tommy
Level 10, Phoenix, AZ, United States
10 February, 20:10
it looks like your missing the class declaration, so add in:
public class MinesweeperGame extends Game{}
Poopy
Level 0
1 February, 22:56
How do you use this app? 🤣
19 January, 00:59
why can I so when you click on manage account does it say it like this