Skip to content

Text-based Ruby implementation of the classic Mastermind game. Player attempts to crack a 4-color code in 12 attempts. Simple CLI interface.

Notifications You must be signed in to change notification settings

kellyky/mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mastermind

A text-based game where you (or the computer) has to break a 4-color code. i.e. like Wordle but for colors. You have 12 attempts.

  • If you guess a correct color in the correct place, you get a black peg
  • If you guess a correct color in the incorrect place, you get a white peg

Pegs are awarded in no particular order, so you'll need to figure out which colors you've got right.

For a more thorough description of gameplay and roles, check out this wikihow article here

Installation

  1. Clone repository
  2. Navigate to this directory
  3. Run bundle install to install gems
git clone [email protected]:kellyky/mastermind.git
cd mastermind
bundle install

You should be ready to play!

To Play

bin/play

Known Issues

Scoring needs fixing.

About

Text-based Ruby implementation of the classic Mastermind game. Player attempts to crack a 4-color code in 12 attempts. Simple CLI interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages