

Set/unset mines marks or claim a cell as free: > 3 2 free Note that it's > not part of the input.Įxample 1: the user loses after exploring a cell that contains a mine The greater-than symbol followed by a space (> ) represents the user input. Numbers from 1 to 8 as explored free cells with 1 to 8 mines around as explored free cells without mines around it Use the following symbols to represent each cell's state: You canĪchieve this in many ways – it's up to you. The free command cannot be a mine it should always be empty. Generate mines like in the original game: the first cell explored with If the player explores a mine, print the field in its current state, The player's input contains a pair of cell coordinates andĪ command: mine to mark or unmark a cell, free to explore a cell. Ask for the player's next move until the player wins or steps

Player's move according to the rules, and print the new minefield Message Set/unset mine marks or claim a cell as free:, treat the Print the current state of the minefield starting with all unexploredĬells at the beginning, ask the player for their next move with the Objectives In this final stage, your program should contain the I will attach the instructions of the final part of the project I worked through this project through JetBrains academy. I have been working on a text based minesweeper game in Java and I am looking for some ways to improve it.
