Minesweeper recreated in Ruby!
The gosu library is used handle the graphics and user input within the Minesweeper
class.
To install the gosu
gem run the following command:
$ gem install gosu
The minesweeper.rb
file contains the code for setting up the game and drawing the minefield. To test the game, you can run the minesweeper.rb
program:
$ ruby minesweeper.rb
The game depends on the Minefield
class defined in minefield.rb
.
This class is used to represent the state of the game.