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.
Комментарии (693)
  • популярные
  • новые
  • старые
Для того, чтобы оставить комментарий Вы должны sign in
Grigoryvvv
Уровень 29
Expert
1 August, 22:03
02.08.2026 / 20 уровень Сначала долго не мог разобраться, инструкций четких нет. После открытия задачи в IntelliJ IDEA нашел папку games.minesweeper. Создал там класс MinesweeperGame, унаследовал от класса Game с импортированием import com.javarush.engine.cell.*; Проверку прошёл успешно 👍
Boris Vasilenko
Уровень 21
18 March, 05:41
А как-то можно возвращаться к ранее пройденным шагам? Ощущение, что как только прошел проверку и перешел на следующий, предыдущие закрыты
Кэрривайт
Уровень 20
19 February, 09:05
Раздел "Игры" на JavaRush: Игровой движок https://javarush.com/groups/posts/2055-razdel-igrih-na-javarush-chastjh-2-opisanie-igrovogo-dvizhka
Alexandr Afonin System Engineer
2 December 2025, 16:31
Где можно скачать библиотеку game-engine.jar? Есть плагин для IDEA, но папки lib нет. Подскажите, что можно сделать?
Overlord Anonim
Уровень 2
14 July 2025, 17:38
😇
Yelyzaveta Shabatyn
Уровень 33
21 February 2025, 06:47
Можно ли как-то исправить или опубликовать заново игру? Она некорректно отображается в браузере.
Anonymous #3434929
Уровень 2
5 January 2025, 07:54
прежде чем творить>посмотрите cs50>эх.если бы в академии мне бы так высшую математику раскрывали,помню себя,как я "пучил"глаза и не понимал решения,что действия могуть бытя бесконечными.)(а именно события))да смотрите мат.часть внимательно ,не поверите тут есть все)
Евгений
Уровень 25
14 October 2024, 06:12
Отличная задумка и превосходно реализованный учебно-практический материал. Авторам огромное спасибо за проделанную работу. Очень понравилось.
laerlinn
Уровень 6
27 September 2024, 06:09
Мде. Если вместо x и y поставить i и j, то программа работать будет, но проверку не пройдёшь. И таких нюансов много. Вроде код рабочий, а проверку не проходишь. Немного напрягает.
Anonymous #3389866
Уровень 2
4 September 2024, 14:07
что-то у меня глюки или в какой версии Java живут компилятор и валидатор???. в 6 задаче, не прошел тип var... поменял на List<GameObject> - все ок