From 8c2275403f10d4bbc9d8665f5bd9ed2f2ca9047e Mon Sep 17 00:00:00 2001 From: github username Date: Fri, 8 Nov 2019 00:06:24 -0500 Subject: [PATCH] Done. --- app/application.rb | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/app/application.rb b/app/application.rb index e19c3284..42def02e 100644 --- a/app/application.rb +++ b/app/application.rb @@ -2,8 +2,22 @@ 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 - + end