8000 GitHub - PavelGordeyev/mastermind: Text-based version of the mastermind game. User will have 8 turns to guess the color and sequence of 4 pegs. Peg colors are represented by numbers 1-6. Each turn, they will receive feedback on the correctness of the guess that was played. An "X" means that it is an exact match for color and location, while a "O" is only a match for color. The results are in a random order.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Text-based version of the mastermind game. User will have 8 turns to guess the color and sequence of 4 pegs. Peg colors are represented by numbers 1-6. Each turn, they will receive feedback on the correctness of the guess that was played. An "X" means that it is an exact match for color and location, while a "O" is only a match for color. The re…

Notifications You must be signed in to change notification settings

PavelGordeyev/mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mastermind

Text-based version of the Mastermind game.

The user will have 8 turns to guess the color and sequence of 4 pegs. Peg colors are represented by numbers 1-6. Each turn, they will receive feedback on the correctness of the guess that was played.

An "X" means that it is an exact match for color and location, while a "O" is only a match for color. The results are in a random order.

Run "python3 mastermind.py"

Instructions

Let's say the hidden puzzle is 4 3 6 1.

Input 4 numbers, separated by a space, let's say 1 2 3 4.

It will output the correctness of that result.

For this example, it would output "O - O -". Note that the result is not an order matching your guess or the solution

There are a total of 8 possible turns in this game

About

Text-based version of the mastermind game. User will have 8 turns to guess the color and sequence of 4 pegs. Peg colors are represented by numbers 1-6. Each turn, they will receive feedback on the correctness of the guess that was played. An "X" means that it is an exact match for color and location, while a "O" is only a match for color. The re…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0