Skip to content

a simple console app enforcing einstein's zebra riddle

License

Notifications You must be signed in to change notification settings

JacksiroKe/EistensRiddle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EistensRiddle

a simple console app enforcing einstein's zebra riddle

What is Einstein's riddle?

The riddle is a logic puzzle supposedly written by Einstein.

What is the riddle itself?

The riddle describes a five person street in which each neighbor has 5 unique properties:

  • House Color
  • Nationality
  • Beverage
  • Cigar Brand
  • Pet

House Colors

The possible house color of each neighbor is one of the following:

  • Blue
  • Green
  • White
  • Red
  • Yellow

Nationalities

The possible nationality of each neighbor is one of the following:

  • British
  • Danish
  • German
  • Norwegian
  • Swedish

Beverages

The possible beverage of each neighbor is one of the following:

  • Beer
  • Coffee
  • Milk
  • Tea
  • Water

Cigar Brand

The possible cigar brand of each neighbor is one of the following:

  • BlueMaster
  • Dunhill
  • AllMall
  • Prince
  • Blend

Pets

The possible pet of each neighbor is one of the following:

  • Cat
  • Bird
  • Dog
  • Fish
  • Horse

With a set of 15 hints, the goal is to find out who has the pet fish.

Hints

  1. brit lives in red House
  2. swede keeps dog as Pet
  3. dane drinks tea
  4. green house to the left of the white house next to it
  5. green owner drinks coffee
  6. the person who smokes pall mall rears birds
  7. the owner of the yellow house smokes Dunhill
  8. the owner living in the house in the center drinks milk
  9. the norwegian lives in the first house
  10. the man who smokes blend lives next to the one who keeps cats
  11. the man who keeps horses lives next to the man who smokes dunhill
  12. the owner who smokes blue master drinks beer
  13. the german smokes prince
  14. the norwegian lives next to the blue house
  15. the man who smokes blend has a neighbor who drinks water

About

a simple console app enforcing einstein's zebra riddle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages