Improve comments
This commit is contained in:
parent
69f57f940e
commit
aeb3e64efc
@ -30,8 +30,9 @@ class Play < ActiveRecord::Base
|
||||
if self.game.play_to_beat
|
||||
# current player is not the player to beat
|
||||
if (self.game.player_to_beat != self.player)
|
||||
# hand_type match?
|
||||
@truths << (self.hand_type == self.game.play_to_beat.play.hand_type)
|
||||
# Compare this hand to the hand_to_beat,
|
||||
# beats?
|
||||
@truths << (self.beats? self.game.play_to_beat.play)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user