Skip to content

Sneakingrocky/Mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Mastermind

What is Mastermind?

Mastermind is a two-player code-breaking game where one player makes a code (in this program it will be the human player) and another player guesses the code (in this program this will be the computer player).

The code is made up of four colors and can include duplicates. There are six available colors from which to choose: red, green, orange, yellow, blue, purple.

Example

Computer prompts you for code:

Can I have your secret code?

You input a 4 letter secret code using: r, g, o, y, b, p

rogy

Computer makes a guess until it has matched your secret code:

This is round 1 My guess is rrrr

This is round 2 My guess is rooo

This is round 3 My guess is royy

This is round 4 My guess is royg

This is round 5 My guess is rogy

I did it! I am so smart.

How to play the game

  1. clone the repository
  2. $ git clone git@github.com:sneakingrocky/Mastermind.git
  3. cd into the directory
  4. $ cd Mastermind $ ruby bin/mastermind

About

First programming adventure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages