From 8f50898100b0e14901905d61d183113b345cbb3b Mon Sep 17 00:00:00 2001 From: Rob Gleeson Date: Mon, 23 May 2011 11:28:56 +0100 Subject: [PATCH] Remove game. --- lib/pry/default_commands/easter_eggs.rb | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lib/pry/default_commands/easter_eggs.rb b/lib/pry/default_commands/easter_eggs.rb index 50c32eff..7079a062 100644 --- a/lib/pry/default_commands/easter_eggs.rb +++ b/lib/pry/default_commands/easter_eggs.rb @@ -3,25 +3,6 @@ class Pry EasterEggs = Pry::CommandSet.new do - command "game", "" do |highest| - highest = highest ? highest.to_i : 100 - num = rand(highest) - output.puts "Guess the number between 0-#{highest}: ('.' to quit)" - count = 0 - while(true) - count += 1 - str = Readline.readline("game > ", true) - break if str == "." || !str - val = str.to_i - output.puts "Too large!" if val > num - output.puts "Too small!" if val < num - if val == num - output.puts "Well done! You guessed right! It took you #{count} guesses." - break - end - end - end - command "east-coker", "" do text = %{ --