Giter Site home page Giter Site logo

abduebrahimi / mastermind Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

Mastermind game in the terminal

License: Apache License 2.0

Python 100.00%
terminal-game python3 mindgame game-python fun-programming python3-script mastermind mastermind-game mastermind-terminal mastermind-python

mastermind's Introduction

Mastermind game in the terminal

In this game you have to guess the colors that the computer randomly selects. The sooner the higher the score.

Usage/Examples

>>> import mastermind
Welcome to Mastermind
Version: 0.9.7
Choose five of these colors: green red blue pink yellow orange gray
12: pink,yellow,red,blue,orange
########################################
white color =  2  , black color =  2
########################################
11: 
11: green,red
Difficulty receiving from input.
11: 
Difficulty receiving from input.
4: pink,yellow,green,red,blue
yeahhh you win your score  40

FAQ

How many colors are there?

There are seven colors. The computer selects five randomly.

What are the names of the colors?

green, red, blue, pink, yellow, orange, gray

How many rounds can I guess?

You are allowed twelve times.

What are black key pegs or white key pegs?

If your color and place are correct, one will be added to the white key pegs.

If the color is correct but the place is wrong, one will be added to the black key pegs.

What does white key pegs = 2, black key pegs = 2 mean?

Of the five colors you sent, 2 have the right place and the right color, and two have the right color and the wrong place, and you have to change one color.

Authors

Contributing

Contributions are always welcome!

License

apache-2

mastermind's People

Contributors

abduebrahimi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.