lib/console_app/output.rb in codebreaker_dmitriev-0.1.0 vs lib/console_app/output.rb in codebreaker_dmitriev-0.2.0

- old
+ new

@@ -10,13 +10,18 @@ def stats_error puts I18n.t :stats_error end def show_stats(stat) - puts I18n.t(:show_stats, rating: stat[:rating], name: stat[:name], difficult: stat[:difficult].level, - a: (stat[:attempts] + stat[:attempts_used]), a_used: stat[:attempts_used], - h: (stat[:hints] + stat[:hints_used]), h_used: stat[:hints_used]) + puts I18n.t(:show_stats, + rating: stat[:rating], + name: stat[:name], + difficult: stat[:difficult].level, + attempts: (stat[:attempts] + stat[:attempts_used]), + attempts_used: stat[:attempts_used], + hints: (stat[:hints] + stat[:hints_used]), + hints_used: stat[:hints_used]) end def show_greeting clear puts I18n.t :greeting @@ -50,11 +55,11 @@ puts I18n.t :difficult print ARROW end def show_name - puts I18n.t :set_name + puts I18n.t :set_name, min: 3 print ARROW end def game_commands puts I18n.t :game_commands @@ -73,10 +78,10 @@ puts I18n.t :save_stats print ARROW end def name_error - puts I18n.t :name_error + puts I18n.t :name_error, min: 3, max: 20 end def lose puts I18n.t :lose end