Mine Picker

Inirerekomendang antasantas
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.
Mga komento (254)
  • Sikat
  • Bago
  • Luma
Dapat kang naka-sign in upang mag-iwan ng komento
Hoist
Antas , ,AnAn
6 January, 02:40
private static final String MINE = "\uD83D\uDCA3"; private static final String MINE = "💣";
mayao
Antas , ,AnAn
19 December 2023, 08:19
I think Minesweeper game is a little annoying (complicated). but the coding process is wonderful.
DokiDoki
Antas , ,An
16 October 2023, 07:14
奥德赛
10 October 2023, 19:57
comment créer une nouvelle classe ,j'ai pas trouvé l'onglet arborescence des classess
15 May 2023, 20:15


27 April 2023, 14:46
/* Comment has been deleted */
27 April 2023, 14:46
/* Comment has been deleted */
Anonymous #11268978
Antas , ,AnAn
28 January 2023, 01:13
huh
Hoist
Antas , ,AnAn
26 January 2023, 06:14
Cool Section here ! Lucky pick vs Threading ! lol Just like the file scaffolding in JavaScript frameworks or Salesforce cloud platform to build out the different code containers -- and pulling in some pre-built functions and User Interface libraries to configure. ---> this thread is Great --- CG game development is a Hot topic !
19 January 2023, 11:52
package
com.codegym.games.minesweeper;
import
com.codegym.engine.cell.*;
public class
MinesweeperGame
extends
Game { }