bin/99_game in 99_game-1.2.1 vs bin/99_game in 99_game-1.3.0
- old
+ new
@@ -1,12 +1,23 @@
#!/usr/bin/env ruby
require '99_game'
BEGIN { # Looks at its arguements
ARGV[0] = "-h" if ARGV[0] == "--help"
+ ARGV[0] = "-v" if ARGV[0] == "--version"
case ARGV[0]
+ when "-v"
+ puts "1.3.0"
+ exit
when "-h"
puts "\u00B7 Commands"
+ puts "\t\u00b7 -v/--version - display version
puts "\t\u00B7 -h/--help - shows this message\n"
+ puts "\u00B7 Abbrevations"
+ puts "\t\u00B7 J -> Jack"
+ puts "\t\u00b7 Q -> Queen"
+ puts "\t\u00b7 K -> King"
+ puts "\t\u00b7 A -> Ace"
+ puts "\t\u00b7 $ -> Joker"
puts "\u00B7 Gameplay"
puts "\t\u00B7 Your goal is to get your opponent to bring the value over 99 by playing 1 of your 3 cards."
puts "\t\u00B7 A card will usually increase the value by itself, but there are a few exceptions:"
puts "\t\t\u00B7 Aces are worth 1"
puts "\t\t\u00B7 1 - 10 are worth themselves, with the exception of 4 and 9"