C++ simple minesweeper game1/21/2024 ![]() ![]() if board has a difficulty of 4, the board has a width of 4 and a height of 4 and 4 mines A new game should start by specifying the difficulty of the game (all boards are squares)e.g.The first part is about how to set up the game, as well as how to display the board to users. I have separated requirements into 2 parts. First thing first let’s go through the requirements. The original title of this kata is “Minesweeper for testing” and the purpose of this exercise is to understand how to build the core of a system without any IO. Next let’s have a look at the specific requirements of this kata, the purpose of this kata is to build a Minesweeper console game. If the centre square is not on the edge of the board, then it has 8 neighbours If it is on the edge but not on the corner of the board, then it has 5 neighbours if the square is on the corner, it has 3 neighbours. Each number indicates the total number of mines within the surrounding neighbour squares. These coloured numbers are the hints that you can get from the game. So you need to use logic to determine where the mines are and avoid clicking on these mine squares. All the mines are hidden when you start the game. The goal is to “reveal” all safe squares without uncovering a mine and blowing up the entire board. What have I learned in this project? I listed some of the main learning content during this time, including foundational knowledge such as Git, c# basics, Four Rules of Simple Design, SOLID, TDD etc.īack to the kata, this is the classic Minesweeper game that people are familiar with - It is a logic game, where the goal is to sweep for mines, and you do this by clicking the squares on the grid. I made a simple object-oriented Minesweeper console app (a hardcore old school PC game). ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |