Created
February 26, 2017 02:14
-
-
Save crestinglight/328fbc039024cceb8267704ad9a7bf14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sinatra' | |
| require 'pry' | |
| require 'CSV' | |
| require_relative 'csvMaker.rb' | |
| get("/"){ | |
| erb :index | |
| } | |
| get("/puzzle01score"){ | |
| writeToFile(params["scoreTime"], params["millis"]) | |
| scores = getHighScores().to_s | |
| return scores | |
| } | |
| get("/puzzle01validate"){ | |
| tf = validateXY(params["xPos"], params["yPos"]) | |
| return tf.to_s | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment