bin/PlayRockPaperScissorsGame in PlayRockPaperScissorsGame-1.6.8 vs bin/PlayRockPaperScissorsGame in PlayRockPaperScissorsGame-1.6.9
- old
+ new
@@ -10,12 +10,12 @@
class PlayRockPaperScissorsGame
require "colorized_string";
- ColorizedString.colors
- ColorizedString.modes
+ ColorizedString.colors;
+ ColorizedString.modes;
class RPS
protected;
module Constants
@@ -78,10 +78,10 @@
def player_choice
loop do
print ColorizedString["Choose rock (r), paper (p) or scissors (s): "].colorize(:green);
choice = gets.chomp.downcase;
return Constants::NTRY_TO_SYM[choice] if Constants::NTRY_TO_SYM.key?(choice);
- puts ColorizedString["That entry is invalid. Please re-enter"].colorize(:green);
+ puts ColorizedString["That entry is invalid. Please re-enter."].colorize(:green);
end;
end;
def player_outcome(plays)
return :WIN if Constants::WINNERS.include?(plays);
return :LOSE if Constants::LOSERS.include?(plays);