Skip to content

About

A simple command-line minesweeper game written in ruby

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

Simple Ruby Minesweeper

A simple terminal minesweeper game written in ruby

About me

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.

About this project

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.

Challenges encountered

  • Coding the basic version in under 1 hour
  • A bug with calculating the number of mines around a square

Code style

ruby-lint

Screenshots

screenshot

Tech used

Built with

  • Ruby 2.7

Implemented Features

  • Customizeable grid size
  • Customizeable percentage as mines
  • Colored selection indicator
  • Automatic new game ad nauseam

Unimplemented Features

  • 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

Installation

Clone the repo and ensure that Ruby 2.7 is installed on your computer.

How to use

  • Open a terminal and browse to the repo
  • Run "ruby ./minesweeper.rb" inside the repo
  • Enjoy a relaxing game of minesweeper

Contribute

If you would like to contribute for some reason, feel free to fork the repo and initiate a pull request with your changes.

License

This project is released under the MIT license.

MIT © maybe-william

About

A simple command-line minesweeper game written in ruby

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages