A simple terminal minesweeper game written in ruby
- Linkedin: https://www.linkedin.com/in/william-dyrland-marquis
- Twitter: https://www.twitter.com/notwilliam4
- Holberton School Foundations Portfolio Project: https://github.com/maybe-william/RocketRiders
I'm a self-taught Computer Scientist of 10 years. As a generalist, my interests include a wide variety of things, both in computer science and in other areas of life, and this has resulted in a broad exploration of computers in general.
This project was originally a self-imposed challenge to build a working game of minesweeper on a terminal in under an hour. After being successful in that challenge, I decided that I would like to try to improve the simple version of the game with extra features.
- Coding the basic version in under 1 hour
- A bug with calculating the number of mines around a square
Built with
- Ruby 2.7
- Customizeable grid size
- Customizeable percentage as mines
- Colored selection indicator
- Automatic new game ad nauseam
- Different color highlighting for success or failure on guesses
- Replacing the board on turns as opposed to printing the board again
- Error messages on incorrect input
Clone the repo and ensure that Ruby 2.7 is installed on your computer.
- Open a terminal and browse to the repo
- Run "ruby ./minesweeper.rb" inside the repo
- Enjoy a relaxing game of minesweeper
If you would like to contribute for some reason, feel free to fork the repo and initiate a pull request with your changes.
This project is released under the MIT license.
MIT © maybe-william
