Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Wadan3/Puzzle-Lock

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.