bin/rps in PlayRockPaperScissorsGame-1.4.2 vs bin/rps in PlayRockPaperScissorsGame-1.4.3

- old
+ new

@@ -9,11 +9,11 @@ =end class PlayRockPaperScissorsGame class RPS - + protected; module Constants NTRY_TO_SYM = { 'p' => :PAPER, 'r' => :ROCK, 's' => :SCISSORS }; VALID_ENTRIES = NTRY_TO_SYM.keys; COMPUTER_CHOICES = NTRY_TO_SYM.values; WINNERS = [[:SCISSORS, :PAPER], [:PAPER, :ROCK], [:ROCK, :SCISSORS]]; # format: player choice, computer choice @@ -64,10 +64,10 @@ else puts "It's a tie!"; end; gets; end; - private + private; module PrivateVars class << self def player_choice loop do print "Choose rock (r), paper (p) or scissors (s): ";