From 59e106cbafb3dd9774b6f359219dfd76d11fd33a Mon Sep 17 00:00:00 2001 From: Joel Quenneville Date: Thu, 20 Sep 2012 16:07:48 -0500 Subject: [PATCH] speed up game and update documentation --- README.md | 4 ++++ lib/life/cli.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b018cb..dc09d67 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,10 @@ You can use a random initial pattern if you don't feel like building one yoursel ``` $ life random -w 10 -h 10 -g 5 ``` +or +``` +$ life random +``` ## Contributing diff --git a/lib/life/cli.rb b/lib/life/cli.rb index d9b458f..f5a5800 100644 --- a/lib/life/cli.rb +++ b/lib/life/cli.rb @@ -54,7 +54,7 @@ def build_random_seed(width, height) def display_simulation(max_gen, height, world) (1..max_gen).each do |gen| print world.to_s("@", " ") + eol(height, gen, max_gen) - sleep(0.5) + sleep(0.2) world.tick end end