Git Product home page Git Product logo

master-mind's Introduction

Master Mind

Play it here

  • Login not required :

    Replit

  • Login required :

    Run on Repl.it

Features

Modes

There are two modes to play :

  • Single Player :

    You play against the computer, which follows knuth's algorithm to guess.

  • Multiplayer :

    You play against someone else locally. The secret code is hidden so they can't really see the code, unless they memorize the combination of keys you pressed, which can be either a bunch of numbers (e.g: 1122), letters (e.g: GGRR), or words (e.g: Green Green Red Red).

In both modes, you can play either as :

  • The Code Maker :

    You make the secret code (the hints are given by the computer),

  • The Code Breaker :

    You have to figure out the secret code.

The other role is played either by the computer, in single player mode, or by your friend, in multiplayer mode.

Several Ways To Guess

The game is pretty forgiving & not strict when it comes to entering a guess.

Here are the 3 valid formats for guessing :

  • Numbers :

    Any 4-digits combination of numbers from 1 to 6, each number references a color. See the guide shown at the start of the game for reference.

    Examples : 1234, 1 2 3 4, 1 23 4, 12 34.

  • Colors' First Letter :

    Any 4-letters combination of the first letter of a valid color. The guide shown at the start of the game shows valid colors.

    Examples : RRGG, rrgg, RrGg, R r GG, r Rg G.

  • Colors' Full Names :

    Any 4 words combination, each word representing the name of a valid color. The guide shown at the start of the game shows valid colors.

    Examples : Red red Green green, redredgreengreen, red redgreen green, redREDgreenGreen.

As shown in the examples above, empty spaces in-between numbers/letters/words are ignored, and so is the case of letters (lowercase/uppercase).

Amounts of rounds to play

There are 5 options to choose from, usually you'd want to play 10/12 rounds in multiplayer mode.

Against the computer, it's going to win most of the time in 6 rounds or less, so choosing less rounds than that to have a fair winning chance is a good idea.

master-mind's People

Contributors

jee-el 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.