Playing cards: Difference between revisions
→{{header|J}}: simplify
(→{{header|J}}: use unicode symbols rather than text) |
(→{{header|J}}: simplify) |
||
Line 730:
NB. Class objects
Ranks=: _2 ]\
Suits=:
DeckPrototype=: (] #: i.@:*/)Ranks ,&# Suits
Line 775:
1
sayCards 2 dealCards__pc 5 NB. deal two hands of five cards
3♦
4♦
5♠▼
K♠
A♦
K♦
▲ 5♠
10♣
Q♥
2♣
9♣
$TheDeck__pc NB. deck size has been reduced by the ten cards dealt
42 2
|