Skip to content

Odin Project Mastermind - Older work starting out in Ruby

Notifications You must be signed in to change notification settings

TENsaga/mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind

Author: TENsaga - Aspen Swanson 2016

Description

Mastermind, a 4 pin sequence of 6 possible colors is layed out in a specific order.

Instructions

The player must guess the color and order, successful guesses are rewarded with white pegs: proper color on board, but incorrect ocation and black pegs: proper color on board in the proper location 12 turns, display board after each guess.

Example

 Turn one >> ABCE
   -----------
 1 | A B C E | bww
 2 | o o o o |
 3 | o o o o |
 4 | o o o o |
 5 | o o o o |
 6 | o o o o |
 7 | o o o o |
 8 | o o o o |
 9 | o o o o |
10 | o o o o |
11 | o o o o |
12 | o o o o |
   -----------

 Turn two >> ACDF
   -----------
 1 | A B C E | bww
 2 | A C D F | bb
 3 | o o o o |
 4 | o o o o |
 5 | o o o o |
 6 | o o o o |
 7 | o o o o |
 8 | o o o o |
 9 | o o o o |
10 | o o o o |
11 | o o o o |
12 | o o o o |
   -----------

About

Odin Project Mastermind - Older work starting out in Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages