Like Oedipus at the gates of Thebes, a user must answer two riddles to enter the city. If either answer is incorrect, the Sphinx will 'eat' the user.
- Practice sampling from a hash.
- Account for varied user inputs.
- Practice writing user and integration tests.
Spec | Input | Output |
---|---|---|
Returns dead if the answer is incorrect | Incorrect answer | Dead! |
Returns alive if the answer is correct | Correct answer | You live. |
Run the following commands in Terminal:
$ git clone
this repository$ cd sphinx
$ ruby app.rb
- Navigate to localhost:4567 in your preferred browser.
- Does not account for singular vs. plural for all riddles.
If you have questions, comments, or concerns, please contact Margaret. Feel free to make a contribution to the code.
- Ruby
- Sinatra
This software is licensed under the MIT license.
Copyright (c) 2017 Margaret Berry and Mark Helt