Skip to content

mfiro/lock_puzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lock Puzzle Game

Overview

Lock Puzzle is a command-line interface (CLI) game inspired by the classic puzzles like Mastermind and Bulls and Cows. It challenges players to guess a secret numerical code within a limited number of attempts. After each guess, players receive feedback indicating how many digits are correct and how many of those are correctly positioned.

Installation

To play Lock Puzzle, clone this repository to your local machine using the following command:

git clone https://github.com/mfiro/lock_puzzle.git
cd lock_puzzle

How to play

Start the game by running:

python lockpuzzle/game.py

Follow the on-screen instructions to guess the secret code. The game will guide you through each attempt, providing feedback to help you refine your guesses.

Rules

  • You will attempt to guess a secret numerical code of a specified length.
  • After each guess, you'll receive feedback indicating:
    • The number of digits that are correct and in the correct position.
    • The number of digits that are correct but in the wrong position.
  • Use this feedback to make your next guess.
  • You have a limited number of attempts to guess the code correctly.

Good luck, and have fun!

License

see the LICENSE file for details.

About

Three digits lock puzzle implementation in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages