Playing cards: Difference between revisions

Content added Content deleted
(→‎{{header|J}}: define sayCards and DeckPrototype in parent class, simplify creation of new deck.)
Line 1,129:
'''Example use:'''
<lang j> load '~user/playingcards.ijs'
coinsert 'rcpc' NB. insertsinsert rcpc class in the path of current locale
pc=: newDeck ''
$TheDeck__pc
Line 1,147:
Queen of Hearts
Six of Clubs
$TheDeck__pc NB. deck size has been reduced by the ten cards dealt
42 2
destroy__pc ''