# Mine Picker

poziom
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.
Komentarze (193)
Musisz się zalogować, aby dodać komentarz
David Meeierer
Poziom 0 , Germany
29 kwietnia, 08:20
kk

Poziom 2 , Beijing, China
23 kwietnia, 11:53

Hoist
Poziom 32 , San Diego, United States
17 kwietnia, 06:40
Congratulations! The game is done! Run it and see what happens. If you have time and motivation, you can improve the game by adding some features of your own. For example: • limit the number of moves; • make it so the first move never hits a mine; • make the game easier or harder by changing the number of mines on the field; • add visual effects (animation). You can publish the finished game on CodeGym. But first, you need to check your solution in order to make the publish button available. The game will be available to all users in the "Games" section. You can also share it with your friends on social networks. Wouldn't it be great if they played your version of Minesweeper? After you publish your game, write brief instructions (the possible actions, the keys/buttons required for the game) and describe the features of your implementation in the comments. Requirements: • Run the game and play.
Anonymous #11502332
Poziom 0 , India
13 kwietnia, 12:51
``````

``````
Example
Anonymous #11499422
Poziom 1 , India
7 kwietnia, 11:13
how to write
(
Poziom 2 , China, China
5 kwietnia, 09:04

Hoist
Poziom 32 , San Diego, United States
6 stycznia, 02:40
private static final String MINE = "\uD83D\uDCA3"; private static final String MINE = "💣";
mayao
Poziom 1 , Chengdu, China
19 grudnia 2023, 08:19
I think Minesweeper game is a little annoying (complicated). but the coding process is wonderful.
DokiDoki
Poziom 0 , China
16 października 2023, 07:14

Anonymous #11407906
Poziom 0 , France
10 października 2023, 19:57
comment créer une nouvelle classe ,j'ai pas trouvé l'onglet arborescence des classess