RoloLudo/RoloLudo.package/DeckOfCards.class/instance/draw..st

6 lines
126 B
Smalltalk
Raw Normal View History

2023-11-26 18:06:04 +00:00
accessing
draw: card
self stock
detect: [ :each | each = card ]
ifFound: [self drawn add: card ]
ifNone: [ ^ nil ]