Minesweeper (Part 6/16)

  • 3
  • Locked
Now let's count the mines in adjacent cells. To do this, we'll add a field to each cell of the matrix, which will be responsible for the number of mined neighbors. First, we find all the neighbors, and then we count how many of them are mined. To get the list of neighbors, you now have the getNeigh
You can't complete this task, because you're not signed in.
Comments (8)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Level 18 , Iasi, Romania
2 November, 13:07
so everything was fine until level 5, where i wrote my own code with no problem, and when I start the level 6 my code is gone and have other code, i guess "the right one", plus the "getNeighbors" method which wasn't write by me. i don't say this code is bad, i'm saying is not mine. this should be a learning platform, what do we learn when somebody flushes our code and ask us to deal with some code wrote by somebody else and to pretend is ours?
Level 3
6 June, 17:15
el último método en el nivel 6 con los arrays se me va de las manos. no me he enterado de nada
Level 2 , Poznań, Poland
10 April 2020, 09:40
Should I implemet getNeighbors() methos myself? Compiler can not find this method. com/codegym/games/minesweeper/part06/MinesweeperGame.java:35: error: cannot find symbol symbol: method getNeighbors(com.codegym.games.minesweeper.part06.GameObject) location: class com.codegym.games.minesweeper.part06.MinesweeperGame
Level 41
14 April 2020, 05:48
Please submit a question in the Help section via the task menu and don't forget to include your code. And give me a link in direct messages
Gabriella LaPlace
Level 16 , Basseterre, Saint Kitts and Nevis
28 February 2020, 14:25
I think this game is way more advanced than level 5, or my Math is just that bad.
Nickolas Johnson
Level 8 , St. Louis, United States of America
4 December 2020, 22:52
yeah, they threw in a bunch of advanced List stuff that's not touched on until level 8.
Level 3
2 August 2019, 08:55
Oh no!-----"It looks like you counted the number of adjacent mines for a cell that is a mine — don't do that."
Level 1 , Lodz, Poland
6 September 2019, 17:34