bin/resume in femis_hangman-0.1.2 vs bin/resume in femis_hangman-0.1.3
- old
+ new
@@ -2,12 +2,10 @@
require "bundler/setup"
require "femis_hangman"
s = FemisHangman::Router.new
-
-if ARGV.length > 2
- session.invalid_prompt
-else
+if ARGV.size == 1
s.status = 'show'
- s.show_saved_games
+ s.load_game(ARGV[0].to_i)
+ s.loop
end
\ No newline at end of file