Skip to content

Wadan3/Puzzle-Lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ” Puzzle Lock

C CLI License

Puzzle Lock is a small interactive terminal game written in C.
The goal is to guess a hidden 3-digit lock code using hints after each attempt.


๐Ÿ“– Overview

This project is a simple logic-based guessing game inspired by lock-code puzzles.

The program randomly generates a 3-digit secret code.
After each guess, the player receives feedback showing how many digits are correct and whether they are in the correct position.


โœจ Features

  • Random 3-digit secret code
  • Supports leading zeros such as 042
  • Limited number of attempts
  • Input validation
  • Hint system
  • Terminal-based gameplay
  • Clean and simple C implementation

๐ŸŽฎ Game Rules

The secret code contains exactly 3 digits.

After each guess, the program gives two hints:

  • Right place: correct digit in the correct position
  • Wrong place: correct digit but in a different position

Example:

Secret code: 123
Guess: 132

Hint: 1 right place, 2 wrong place

About

A small interactive C terminal game where players guess a hidden 3-digit lock code using logic-based hints.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages