lib/PrivateMethods.rb in PlayRockPaperScissorsGame-2.2.8 vs lib/PrivateMethods.rb in PlayRockPaperScissorsGame-2.2.9
- old
+ new
@@ -8,10 +8,10 @@
print ColorizedString["Choose rock (r), paper (p) or scissors (s): "].colorize(:green)
choice = gets.chomp.downcase
if Constants::NTRY_TO_SYM.key?(choice)
return Constants::NTRY_TO_SYM[choice]
elsif choice != Constants::VALID_ENTRIES
- puts ColorizedString["That entry is invalid. Please re-enter"].colorize(:green)
+ puts ColorizedString["That entry is invalid. Please re-enter."].colorize(:red)
end
# # one may also do this:
# case
# when Constants::NTRY_TO_SYM.key?(choice)
# return Constants::NTRY_TO_SYM[choice]