Pokex v0.2.0 Dealer View Source

Functions to deal and draw cards from the deck

You can use the Deck to deal() and draw()

Link to this section Summary

Functions

Deal cards to a given number of players. Returns a list of card lists for each player hand and a list of the rest of the deck

Draws from a given deck of cards and distributes them to players hands, one by one in each turn

Link to this section Functions

Deal cards to a given number of players. Returns a list of card lists for each player hand and a list of the rest of the deck.

The player number should be between 2 and 6.

Link to this function draw(deck, player_number, hand_allotment) View Source

Draws from a given deck of cards and distributes them to players hands, one by one in each turn.