Open eda-waffler opened 8 years ago
Stretch Goal 4: I have added a function to aid in debugging/ playing the game that will display an ascii representation of the board with the mines marked with X's to help with debugging.... or you know... cheating
Stretch Goal 4 part 2: I have added in 3 different levels of difficulty which corresponds to the number of cells in the board. Once a new difficulty is selected a new game is started with an updated board.
That looks great!
6.4 Minesweeper: finishing touches
Congratulations on making it this far! We hope you enjoyed (or at least were not driven to distraction by) this little journey through a classic game.
The basics are complete, but there are so many more things to work on. Here are some stretch goals if you're done ahead of time and your other assignments for the week are complete. Don't get too bogged down in trying to make your game perfect: it's much more important that you learn the principles behind it.
Please do the push to GitHub Pages regardless though, and share your work with the cohort.
board
object, write a function to create it.row
,col
,isMine
,isMarked
, andhidden
properties.isMine
to true, but later you'll probably want to have a random number of mines scattered throughout the board.board
object.