Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mystery Mania an 80's Logic Problem Generator
#5
As you may have guessed these logic problems were meant to be printed out and solved with pencil and paper. Generally a special table is used to solve the logic problem. I went ahead and added a feature that creates a table with the puzzle already filled in.

Here is an example of the output. There is a large gap from the puzzle to the table, that is so that it will hopefully it will print on separate pages.

Code: (Select All)
Six men, Marty Harrison, Jack Davis, Robert Smith, Tom Jones, Bill Stevenson, and Larry Edison were in a restaurant together, Suddenly, the lights went out.
When the lights came back on, Marty Harrison was found strangled.
The other detectives have investigated. They have questioned the suspects, the witnesses, and people who know the suspects. They have collected physical evidence (hair samples, fiber samples, etc.) from the crime scene.
They have collected 14 clues, but have not been able to solve the crime. Therefore, they have called in the city's greatest homicide detective. That's YOU! You will now be given the clues, and must solve the murder.
No two suspects have the same color shoes, height, color shirt, weight or hair color.
Clues:
Tom Jones is 5 feet 9 inches tall.
Bill Stevenson has blond hair.
Larry Edison weighs 220 pounds.
The suspect who was wearing brown shoes is 5 feet 6 inches tall.
The suspect who was wearing an orange shirt is not the one who is 5 feet tall.
The suspect who was wearing brown shoes is black hair.
The suspect who is 6 feet tall weighs 170 pounds.
The murderer weighs 160 pounds.
The suspect who weighs 220 pounds was wearing orange shoes.
The suspect who weighs 210 pounds is not the one who was wearing blue shoes.
The suspect who is 6 feet tall was wearing red shoes.
Jack Davis was wearing a blue shirt.
Robert Smith was wearing tan shoes.
The suspect who weighs 180 pounds is 5 feet 6 inches tall.













































===================================================================
                |n|b|b|b|r|2|1|2|1|1|a|a|a|a|a|5|5|5|6|5|o|b|t|r|b|
                |o|l|r|l|e|2|8|1|7|6| | | |n| | | | | | |r|r|a|e|l|
                | |a|o|o|d|0|0|0|0|0|y|b|w| |b|f|f|f|f|f|a|o|n|d|u|
                |h|c|w|n| | | | | | |e|l|h|o|l|e|e|e|e|e|n|w| | |e|
                |a|k|n|d|h|p|p|p|p|p|l|u|i|r|a|e|e|e|e|e|g|n|s|s| |
                |i| | | |a|o|o|o|o|o|l|e|t|a|c|t|t|t|t|t|e| |h|h|s|
                |r|h|h|h|i|u|u|u|u|u|o| |e|n|k| | | | | | |s|o|o|h|
                | |a|a|a|r|n|n|n|n|n|w|s| |g| |t|6|3|t|9|s|h|e|e|o|
                | |i|i|i| |d|d|d|d|d| |h|s|e|s|a| | |a| |h|o|s|s|e|
                | |r|r|r| |s|s|s|s|s|s|i|h| |h|l|i|i|l|i|o|e| | |s|
                | | | | | | | | | | |h|r|i|s|i|l|n|n|l|n|e|s| | | |
                | | | | | | | | | | |i|t|r|h|r| |c|c| |c|s| | | | |
                | | | | | | | | | | |r| |t|i|t| |h|h| |h| | | | | |
                | | | | | | | | | | |t| | |r| | |e|e| |e| | | | | |
===================================================================
Jack Davis      I | | | | I | | | | I | | | | I | | | | I | | | | I
-------------------------------------------------------------------
Robert Smith    I | | | | I | | | | I | | | | I | | | | I | | | | I
-------------------------------------------------------------------
Tom Jones       I | | | | I | | | | I | | | | I | | | | I | | | | I
-------------------------------------------------------------------
Bill Stevenson  I | | | | I | | | | I | | | | I | | | | I | | | | I
-------------------------------------------------------------------
Larry Edison    I | | | | I | | | | I | | | | I | | | | I | | | | I
===================================================================
blue shoes      I | | | | I | | | | I | | | | I | | | | I
---------------------------------------------------------
red shoes       I | | | | I | | | | I | | | | I | | | | I
---------------------------------------------------------
tan shoes       I | | | | I | | | | I | | | | I | | | | I
---------------------------------------------------------
brown shoes     I | | | | I | | | | I | | | | I | | | | I
---------------------------------------------------------
orange shoes    I | | | | I | | | | I | | | | I | | | | I
=========================================================
5 feet 9 inches I | | | | I | | | | I | | | | I
-----------------------------------------------
6 feet tall     I | | | | I | | | | I | | | | I
-----------------------------------------------
5 feet 3 inches I | | | | I | | | | I | | | | I
-----------------------------------------------
5 feet 6 inches I | | | | I | | | | I | | | | I
-----------------------------------------------
5 feet tall     I | | | | I | | | | I | | | | I
===============================================
a black shirt   I | | | | I | | | | I
-------------------------------------
an orange shirt I | | | | I | | | | I
-------------------------------------
a white shirt   I | | | | I | | | | I
-------------------------------------
a blue shirt    I | | | | I | | | | I
-------------------------------------
a yellow shirt  I | | | | I | | | | I
=====================================
160 pounds      I | | | | I
---------------------------
170 pounds      I | | | | I
---------------------------
210 pounds      I | | | | I
---------------------------
180 pounds      I | | | | I
---------------------------
220 pounds      I | | | | I
===========================
-----------Explanation------------
Larry Edison weighs 220 pounds.
The murderer weighs 160 pounds, so Larry Edison is not the murderer.
The suspect who weighs 180 pounds is 5 feet 6 inches tall.
The suspect who was wearing brown shoes is 5 feet 6 inches tall.
The suspect who was wearing brown shoes is black hair.
Therefore, one suspect is 5 feet 6 inches tall, weighs 180 pounds, was wearing brown shoes, and  is black hair.
But Tom Jones is 5 feet 9 inches tall, Bill Stevenson has blond hair, Robert Smith was wearing tan shoes, and Larry Edison weighs 220 pounds.
Therefore, that one suspect is Jack Davis.
Since Jack Davis weighs 180 pounds, he is not the murderer.
The suspect who is 6 feet tall was wearing red shoes. The suspect who is 6 feet tall weighs 170 pounds.
Therefore, one suspect was wearing red shoes, is 6 feet tall, and weighs 170 pounds.
Tom Jones is 5 feet 9 inches tall, Robert Smith was wearing tan shoes, Larry Edison weighs 220 pounds, and Jack Davis weighs 180 pounds.
Therefore, that one suspect is Bill Stevenson.
Since Bill Stevenson weighs 170 pounds, he is not the murderer.
The suspect who weighs 220 pounds was wearing orange shoes. Larry Edison weighs 220 pounds. Therefore, Larry Edison was wearing orange shoes.
Robert Smith was wearing tan shoes, Jack Davis was wearing brown shoes, Bill Stevenson was wearing red shoes.
Therefore, Tom Jones is the one who was wearing blue shoes.
This means that Tom Jones is not the suspect who weighs 210 pounds.
Since Larry Edison weighs 220 pounds, Jack Davis weighs 180 pounds, and Bill Stevenson weighs 170 pounds, Robert Smith must be the one who weighs 210 pounds.
Since the murderer weighs 160 pounds, Robert Smith is not the murderer.
By process of elimination, Tom Jones is the murderer.


Attached Files
.bas   mysterymania_v1.2.bas (Size: 12.96 KB / Downloads: 10)
Reply


Messages In This Thread
RE: Mystery Mania an 80's Logic Problem Generator - by justsomeguy - 02-09-2025, 08:18 PM



Users browsing this thread: 3 Guest(s)