The result consists of a black peg for each peg you

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: be error checked to ensure they are the correct length and only contain valid characters. The output of the game should be a simple text based display on the console, similar to the following example: Sample user dialogue Initial greeting. Welcome to Mastermind. Here are the rules. This is a text version of the classic board game Mastermind. The computer will think of a secret code. The code consists of 4 colored pegs. The pegs may be one of six colors: blue, green, orange, purple, red, or yellow. A color may appear more than once in the code. You try to guess what colored pegs are in the code and what order they are in. After you make a valid guess the result (feedback) will be displayed. The result consists of a black peg for each peg you hav...
View Full Document

This document was uploaded on 03/16/2014 for the course EE 422c at University of Texas at Austin.

Ask a homework question - tutors are online