dealAll method
- int n
override
Deal all Hands created from this deck a number of cards. Useful at
the start of a hand of play, e.g. d.dealAll(5);
.
Implementation
@override
bool dealAll(int n) {
if (_cards.length < n * hands.length) return false;
for (var h in hands) {
h.pushN(n, _cards.popN(n));
}
return true;
}