Skip to content

An application where a user has to answer a series of the Sphinx’s riddles (Epicodus Ruby Week 2 Tuesday)

Notifications You must be signed in to change notification settings

codemargaret/sphinx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Riddles of the Sphinx

An app that presents two random riddles, 09.12.2017

By Margaret Berry and Mark Helt

Description

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.

Project Goals

  • Practice sampling from a hash.
  • Account for varied user inputs.
  • Practice writing user and integration tests.

Specifications

Spec Input Output
Returns dead if the answer is incorrect Incorrect answer Dead!
Returns alive if the answer is correct Correct answer You live.

Setup/Installation Requirements

Run the following commands in Terminal:

  1. $ git clone this repository
  2. $ cd sphinx
  3. $ ruby app.rb
  4. Navigate to localhost:4567 in your preferred browser.

Known Bugs

  • Does not account for singular vs. plural for all riddles.

Support and contact details

If you have questions, comments, or concerns, please contact Margaret. Feel free to make a contribution to the code.

Technologies Used

  • Ruby
  • Sinatra

License

This software is licensed under the MIT license.

Copyright (c) 2017 Margaret Berry and Mark Helt

About

An application where a user has to answer a series of the Sphinx’s riddles (Epicodus Ruby Week 2 Tuesday)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published