Skip to content

ebowman/pidayriddle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

See riddle.pdf for the problem.

To run the solution, try:

$ sbt run

It will output something like:

[info] Loading global plugins from /Users/ebowman/.sbt/0.13/plugins
[info] Set current project to pidayriddle (in build file:/Users/ebowman/src/ebowman/pidayriddle/)
[info] Updating {file:/Users/ebowman/src/ebowman/pidayriddle/}pidayriddle...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Compiling 1 Scala source to /Users/ebowman/src/ebowman/pidayriddle/target/scala-2.10/classes...
[info] Running Einstein
            House 1     House 2     House 3     House 4     House 5
            Color:      Yellow      Blue        Red         Green       White
            Nation:     Norwegian   Dane        Brit        German      Swede
            Drink:      Water       Tea         Milk        Coffee      Beer
            Pet:        Cats        Horses      Birds       Fish        Dogs
            Smoke:      Dunhill     Blend       Pall Mall   Prince      BlueMaster

            The German owns the Fish
            [success] Total time: 6 s, completed Mar 17, 2016 2:56:38 PM

Seems this comes from here: https://udel.edu/~os/riddle.html

Also many solutions (including this one...;)) can be found at https://rosettacode.org/wiki/Zebra_puzzle.

About

Solution to the ZalandoTech "Pi Day" riddle challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages