test/test_rps.rb in PlayRockPaperScissorsGame-1.4.2 vs test/test_rps.rb in PlayRockPaperScissorsGame-1.4.3

- old
+ new

@@ -7,11 +7,11 @@ =end class Test class Rake < Test - + 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 @@ -62,10 +62,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): ";