Skip to content

Commit

Permalink
Refactor into functions
Browse files Browse the repository at this point in the history
  • Loading branch information
henribru committed Nov 1, 2019
1 parent 6182ab5 commit 07557c4
Show file tree
Hide file tree
Showing 5 changed files with 283 additions and 178 deletions.
4 changes: 1 addition & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ verify_ssl = true

[dev-packages]
black = "*"
mypy = "*"

[packages]
python-constraint = "*"

[requires]
python_version = "3.7"

[pipenv]
allow_prereleases = true
100 changes: 90 additions & 10 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

165 changes: 0 additions & 165 deletions csp.py

This file was deleted.

25 changes: 25 additions & 0 deletions riddle.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
At the dinner party were Lady Winslow, Doctor Marcolla, Countess
Contee, Madam Natsiou, and Baroness Finch.

The women sat in a row. They all wore different colors and Baroness
Finch wore a jaunty red hat. Lady Winslow was at the far left,
next to the guest wearing a blue jacket. The lady in white sat left of
someone in green. I remember that white outfit because the woman
spilled her wine all over it. The traveler from Dunwall was dressed
entirely in purple. When one of the dinner guests bragged about her
War Medal, the woman next to her said they were finer in Dunwall,
where she lived.

So Doctor Marcolla showed off a prized Ring, at which the lady from
Fraeport scoffed, saying it was no match for her Bird Pendant.
Someone else carried a valuable Diamond and when she saw it,
the visitor from Karnaca next to her almost spilled her neighbor's
absinthe. Madam Natsiou raised her whiskey in toast. The lady from Dabokva,
full of beer, jumped up onto the table, falling onto the guest in the
center seat, spilling the poor woman's rum. Then Countess Contee
captivated them all with a story about her wild youth in Baleton.

In the morning, there were four heirlooms under the table: the War Medal,
Snuff Tin, the Bird Pendant, and the Diamond.

But who owned each?
Loading

0 comments on commit 07557c4

Please sign in to comment.