assign9 - Assignment 9 Mastermind is a code-breaking game....

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Assignment 9 Mastermind is a code-breaking game. One player makes a code, and the other player tries to break it. Visit http://www.archimedes-lab.org/mastermind.html for a brief history of the game. The site also allows you to play the game. The computer picks a code, and you get to try and break it. In the basic version of the game, the code consists of four coloured pegs, and six colours are used (the game can be made more difficult by increasing the number of pegs and/or the number of colours). The code breaker makes guesses as to what the code is. After each guess, the code maker indicates how many guess pegs are totally correct (right colour, right position) and how many guess pegs are partially correct (right colour, wrong position). In the game as sold (and on the web site), small black and white pegs are used as indicators. A black peg means that a guess peg is totally correct, and a white peg that a guess peg is partially correct. The sample game below should give the idea.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/28/2011 for the course MATH 101 taught by Professor Duke during the Spring '11 term at University of Ottawa.

Page1 / 2

assign9 - Assignment 9 Mastermind is a code-breaking game....

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online