Mine Picker

Zalecany poziompoziom
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 (208)
  • Popularne
  • Najnowsze
  • Najstarsze
Musisz się zalogować, aby dodać komentarz
Anonymous #11024891
Poziom 1 , Pakistan
23 czerwca, 08:57
my solution you can make this better but it is nice
NoahConnor
Poziom 1 , United States
13 czerwca, 12:22
how do i play
John Squirrels Website Admin w CodeGym
14 czerwca, 06:19
You need to actually make the game first, then publish it and play it. Otherwise, you can look at the list of published games from other users and play one of their creations.
MaisNon
Poziom 17 , Spain
12 czerwca, 01:09
When I run the game then I see this: "To divide the screen into cells, use the setScreenSize(columnCount, rowCount) method". But what must I have to do?
esmeralda
Poziom 1 , United States
23 maja, 17:00
hello 🥳
faith
Poziom 1 , United States
22 maja, 00:03
hi
。。。。。。
Poziom 0 , China
18 maja, 02:08
为什么把项目复制到idea没有找到那些包
YiYan Qu
Poziom 0 , United States
19 maja, 15:46
Try mine package com.codegym.games.minesweeper; import com.codegym.engine.cell.Color; import com.codegym.engine.cell.Game; These are the first three line from my code.
Vargas
Poziom 10 , Madrid
12 maja, 15:15
Great Game! I've just published mine with some modifications... Now you look for bees, not mines! ☺️☺️
semih
Poziom 0 , Germany
26 kwietnia, 17:56
das sied interesand aus
Anonymous #10895311
Poziom 0 , Netherlands
20 kwietnia, 18:24
where is the tutorial
musab
Poziom 1 , United Kingdom
18 kwietnia, 15:22
请你先在此试一试打开某一个游戏,然后再用IDEA打开。怎么样?


John Squirrels Website Admin w CodeGym
19 kwietnia, 07:57
如果你有任何问题,请你私信我。