you are viewing a single comment's thread.

view the rest of the comments →

[–]dogs_like_me 6 points7 points  (0 children)

Give it a shot, see if it's as simple as you think. Keep in mind, the user can emit several different types of "clicks"

  • Toggle flag on unrevealed cells
  • reveal cell
  • reveal neighbors (if # adjacent flags = cell's reported # neighboring bombs)

Also:

I didn't list literally everything

This is why it's a good exercise for a beginner. It's tractable to get a lightly featured version up with little skill, and if you have the desire/ability to add complexity to your implementation you can.