Skip to content

BShowen/ruby_mastermind_game

Repository files navigation

Project: Mastermind

If you’ve never played Mastermind, a game where you have to guess your opponent’s secret code within a certain number of turns (like hangman with colored pegs), check it out on Wikipedia. Each turn you get some feedback about how good your guess was – whether it was exactly correct or just the correct color but in the wrong space.

Description provided by The Odin Project

alt text

To play the game please follow the instructions below.

I have not yet learned how to bundle gems. You will need the colorize gem installed on your machine before you try to run this.

Instructions for installing the Colorize gem.

  1. Open your command-line
  2. Type $gem install colorize
  3. Now proceed to follow the instructions below.

Instructions for playing the game.

  1. First, make sure you have the colorize gem installed.
  2. Clone or download a copy of this repo onto your machine.
  3. Open your command-line and cd into the directory where you have downloaded these files.
  4. Play the game by typing $ruby play_game.rb

About

Play Mastermind in the command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages