Challenge 147 - Mastermind
from Part II - Chunky Challenges
Published online by Cambridge University Press: 28 May 2019
Summary
In this chunky challenge the reader makes an on-screen version of the board game “Mastermind”. The computer will automatically generate four colours from a list of possible colours, which the user must guess correctly to win the game. The skills they need include: input and display data, lists, random choice from a list, if statements, loops (while and for) and subprograms.
- Type
- Chapter
- Information
- Python by ExampleLearning to Program in 150 Challenges, pp. 153 - 155Publisher: Cambridge University PressPrint publication year: 2019