bin/PlayRockPaperScissorsGame in PlayRockPaperScissorsGame-1.4.7 vs bin/PlayRockPaperScissorsGame in PlayRockPaperScissorsGame-1.4.8
- old
+ new
@@ -9,10 +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;
@@ -91,7 +92,7 @@
end;
end;
end;
end;
-PlayRockPaperScissorsGame::RPS::RockPaperScissors.new.play(3); # best of 3
+PlayRockPaperScissorsGame::RPS::RockPaperScissors.new.play(2); # best of 3