Anonymous user
Playing cards: Difference between revisions
→{{header|PHP}}: changed Deck::deal() to deal FIFO in stead of LIFO
(Added implementation for PHP) |
(→{{header|PHP}}: changed Deck::deal() to deal FIFO in stead of LIFO) |
||
Line 2,205:
}
return new CardCollection( array_splice( $this->cards,
}
Line 2,252:
52 cards in the new deck, shuffled:
Player 1 got dealt the following 4 cards:
Player 2 got dealt the following 4 cards:
Player 3 got dealt the following 4 cards:
Player 4 got dealt the following 4 cards:
36 cards remaining in the deck:
=={{header|PicoLisp}}==
|