def special?
SPECIALS.include?(@value)
end
+
+ def <=>(other)
+ cc = self.color <=> other.color
+ if cc == 0
+ return self.value.to_s <=> other.value.to_s
+ else
+ return cc
+ end
+ end
+ include Comparable
end
# Wild, Wild +4 cards
end
notify player, _("You picked %{picked}") % { :picked => picked.join(' ') }
player.cards += picked
+ player.cards.sort!
end
def add_player(user)
end
when :pl # play card
if g.has_turn?(m.source)
- g.play_card(m.source, m.params)
+ g.play_card(m.source, m.params.downcase)
else
m.reply _("It's not your turn")
end