From 89d90d948a145618cc29868292a581b0cadbc153 Mon Sep 17 00:00:00 2001 From: alejandra cantu Date: Thu, 7 Jan 2021 01:08:43 +0000 Subject: [PATCH] Done. --- app/application.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/application.rb b/app/application.rb index e19c3284..4bdb6ae5 100644 --- a/app/application.rb +++ b/app/application.rb @@ -2,7 +2,17 @@ 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) + + if num_1==num_2 && num_2==num_3 + resp.write "You Win" + else + resp.write "You Lose" + end + resp.finish end