Skip to content

Instantly share code, notes, and snippets.

View surmistry's full-sized avatar

Suraj Mistry surmistry

  • Toronto
View GitHub Profile
@surmistry
surmistry / game.rb
Last active April 10, 2017 21:21
Ruby Math game
class Game
@@rightwrong = ['Seriously? NO!', 'ZOMG no nNOOOO!', 'Are you blind? WRONG', 'Maybe math isn\'t your thing']
def challenge(ans)
ans == $stdin.gets.chomp.to_i
end
def new_turn
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
</head>