Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 832 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 832 Bytes

minesweeper

Minesweeper recreated in Ruby!

Minesweeper

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.