Skip to content

its-namami/Mastermind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind

A logical guessing CLI game

Features

  • User interactivity
  • "Anonymous" evaluation of guess

Description

Welcome to the Mastermind Game!

Game Rules:

  • The Codemaker has selected a secret sequence of 4 colors.
  • You have up to 8 rounds to guess this sequence.
  • After each guess, the Codemaker will give you feedback:
  • "black" indicates a correct color in the correct position.
  • No feedback or other indicators means your guess has no correct colors or positions.
  • Use the feedback to improve your next guess.
  • There are 6 available colors.

How to Play:

  • In each round, you will be asked to input a sequence of 4 colors.
  • Enter each color one by one when prompted.
  • Make sure to only input from the available colors.
  • Try to guess the exact sequence before the rounds run out.

Good luck and have fun!

Demo

Demo of the game running

Run Locally

Clone the project

  git clone https://github.com/its-namami/Mastermind

Go to the project directory

  cd Mastermind

Run the game

  ruby main.rb

About

CLI game about guessing a secret code consisting of a series of 4 colored pegs.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages