summaryrefslogtreecommitdiffstats
path: root/CLI/ruby/lib/game_of_life.rb
diff options
context:
space:
mode:
Diffstat (limited to 'CLI/ruby/lib/game_of_life.rb')
-rw-r--r--CLI/ruby/lib/game_of_life.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/CLI/ruby/lib/game_of_life.rb b/CLI/ruby/lib/game_of_life.rb
index cb122cb..ca9ce5d 100644
--- a/CLI/ruby/lib/game_of_life.rb
+++ b/CLI/ruby/lib/game_of_life.rb
@@ -36,11 +36,11 @@ module GameOfLife
end
if (options["width"]&.< 1) || (options["width"]&.> max_width)
fail GameOfLife::Error, "Invalid --width value. " \
- "must be between 1 and #{max_width} (current terminal width)"
+ "must be between 1 and #{max_width} (current terminal width)"
end
if (options["height"]&.< 1) || (options["height"]&.> max_height)
fail GameOfLife::Error, "Invalid --height value. " \
- "must be between 1 and #{max_height} (current terminal height)"
+ "must be between 1 and #{max_height} (current terminal height)"
end
fail GameOfLife::Error, "Invalid --live-cell value. must be a single character" if options["live-cell"].length > 1
@@ -111,7 +111,7 @@ module GameOfLife
# Ref: https://stackoverflow.com/questions/11023929/using-the-alternate-screen-in-a-bash-script
# Ref: https://superuser.com/questions/122911/what-commands-can-i-use-to-reset-and-clear-my-terminal
print "\e[?1049h\e[H"
- print universe.to_s
+ print universe
print "\n #{BANNER}"
sleep(DELAY / 1000.0)
end