Anonymous user
Playing cards: Difference between revisions
→{{Header|CoffeeScript}}
No edit summary |
|||
Line 635:
constructor: (@pip, @suit) ->
toString:
class Deck
Line 648:
@cards.push new Card(pip, suit)
toString:
shuffle:
for card, i in @cards
randomCard = parseInt @cards.length * Math.random()
|