Mine Field Game

This is a project I created for my Java class. When the program is run a window is created where a user can select a difficulty. When the user picks a difficulty the difficulty buttons are disabled and the game is enabled. When the user clicks on tiles they change their color to white.  If they select enough tiles without hitting a bomb, a message appears saying that they won the game. The user can then hit the reset button and start the game again. If the user ends up hitting a bomb all the squares turn white except for the bomb square which turns red. The user can then hit the reset button to start the game again.

Click to view code

Screen Shot 2015-12-23 at 2.52.44 AM

Screen Shot 2015-12-23 at 2.52.52 AM

Screen Shot 2015-12-23 at 2.52.58 AM

Screen Shot 2015-12-23 at 2.53.05 AM

Screen Shot 2015-12-23 at 2.57.48 AM