Improve comments

This commit is contained in:
Jesse C. Fisher 2015-08-17 15:10:53 -07:00
parent 69f57f940e
commit aeb3e64efc

View File

@ -30,8 +30,9 @@ class Play < ActiveRecord::Base
if self.game.play_to_beat if self.game.play_to_beat
# current player is not the player to beat # current player is not the player to beat
if (self.game.player_to_beat != self.player) if (self.game.player_to_beat != self.player)
# hand_type match?
@truths << (self.hand_type == self.game.play_to_beat.play.hand_type) @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) @truths << (self.beats? self.game.play_to_beat.play)
end end
end end