Skip to content

Instantly share code, notes, and snippets.

@crestinglight
Created February 26, 2017 02:14
Show Gist options
  • Select an option

  • Save crestinglight/328fbc039024cceb8267704ad9a7bf14 to your computer and use it in GitHub Desktop.

Select an option

Save crestinglight/328fbc039024cceb8267704ad9a7bf14 to your computer and use it in GitHub Desktop.
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