Skip to content

About

A Python program that deduces the culprit from suspects’ contradictory statements. Only one suspect tells the truth while others lie. A fun example of reasoning with code, string parsing, and logical deduction.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

🕵️ Sherlock Logic Puzzle

🔍 One Truth, Two Lies — Can Sherlock deduce the culprit?

Python
License: MIT


✨ About

This project simulates a Sherlock Holmes–style deduction puzzle.
There are 3 suspects, each giving a statement. Only one suspect tells the truth, and the rest lie.
The program uses logic to determine who the real culprit is.


🛠️ How it Works

  • Each suspect makes a statement.
  • The program checks possible truth-tellers.
  • If exactly one statement aligns with the rules, Sherlock deduces the culprit.

Clone the repo

git clone https://github.com/DDharm007/Sherlock-Logic-Puzzle.git cd sherlock-puzzle

Run the script

python sherlock.py

About

A Python program that deduces the culprit from suspects’ contradictory statements. Only one suspect tells the truth while others lie. A fun example of reasoning with code, string parsing, and logical deduction.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages