liarsdice_cbarcroft 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/liars_dice.rb +1 -1
- metadata +1 -1
data/lib/liars_dice.rb
CHANGED
@@ -9,7 +9,7 @@ class LiarsDice
|
|
9
9
|
@players = {:player => "Player", :computer => "Computer"}
|
10
10
|
@current_player = first_turn
|
11
11
|
if first_turn == false
|
12
|
-
if [:computer, :player].respond_to?(sample) then
|
12
|
+
if [:computer, :player].respond_to?("sample") then
|
13
13
|
@current_player = [:computer, :player].sample
|
14
14
|
else
|
15
15
|
@current_player = [:computer, :player].choice
|