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, -0, $amount ) );
}
 
Line 2,252:
 
52 cards in the new deck, shuffled:
♦K♣5 ♥5♥6 ♠3 ♦4♥9 ♠A♥7 ♠2♥Q ♣7♠J ♥3♠4 ♦3♦7 ♣9♣Q ♥A♣4 ♠T♠9 ♦Q♦A ♣4♠Q ♣A♦J ♦T♦9 ♥K♠K ♥8♥A ♦2♥T ♥6♦Q ♣3♥K ♣5♥8 ♠Q♣6 ♠7♥2 ♠5 ♦5♠A ♠6♦8 ♥9♣A ♥Q♥4 ♠K♣K ♠J♣9 ♣Q♠7 ♣2♥J ♥2♠T ♣K♦2 ♦9♣7 ♦7♣T ♦J♦K ♦8♣8 ♥T♣2 ♣J♥5 ♠9♦T ♠4♥3 ♦A♠8 ♣T♠6 ♦6♣J ♥7♦5 ♥4♣3 ♣6♦3 ♠8♠2 ♥J♦4 ♣8♦6
 
Player 1 got dealt the following 4 cards: ♣6♣5 ♠8♥6 ♥J♠3 ♣8♥9
Player 2 got dealt the following 4 cards: ♣T♥7 ♦6♥Q ♥7♠J ♥4♠4
Player 3 got dealt the following 4 cards: ♣J♦7 ♠9♣Q ♠4♣4 ♦A♠9
Player 4 got dealt the following 4 cards: ♦7♦A ♦J♠Q ♦8♦J ♥T♦9
 
36 cards remaining in the deck:
♦K♠K ♥5♥A ♠3♥T ♦4♦Q ♠A♥K ♠2♥8 ♣7♣6 ♥3♥2 ♦3♠5 ♣9♠A ♥A♦8 ♠T♣A ♦Q♥4 ♣4♣K ♣A♣9 ♦T♠7 ♥K♥J ♥8♠T ♦2 ♥6♣7 ♣3♣T ♣5♦K ♠Q♣8 ♠7♣2 ♠5♥5 ♦5♦T ♠6♥3 ♥9♠8 ♥Q♠6 ♠K♣J ♠J♦5 ♣Q♣3 ♣2♦3 ♥2♠2 ♣K♦4 ♦9♦6</pre>
 
=={{header|PicoLisp}}==