From f3aa923f3c7838327c1be392788c20a5f14ee4ec Mon Sep 17 00:00:00 2001 From: Olivia Kesler Date: Sat, 14 Dec 2019 21:53:40 +0000 Subject: [PATCH] Done. --- app/application.rb | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/app/application.rb b/app/application.rb index e19c3284..62d2c930 100644 --- a/app/application.rb +++ b/app/application.rb @@ -2,7 +2,21 @@ class Application def call(env) resp = Rack::Response.new - resp.write "Hello, World" + + num_1 = Kernel.rand(1..20) + num_2 = Kernel.rand(1..20) + num_3 = Kernel.rand(1..20) + + resp.write "#{num_1}\n" + resp.write "#{num_2}\n" + resp.write "#{num_3}\n" + + if num_1==num_2 && num_2==num_3 + resp.write "You Win" + else + resp.write "You Lose" + end + resp.finish end