GreatXander / cards_game

0 stars 0 forks source link

Game players-deck/package changes #27

Closed GreatXander closed 4 years ago

GreatXander commented 4 years ago

Players.py changes

• New function "get_random_cards" to obtain aleatory cards from the "cards" array. • The players deck now is obtained using the function "get_random_cards".

Game.py changes

• The function "leave_card" now receives a parameter "is_from_package" to identify when a card is from the package or from the player deck. • The "card_from_package" now is obtained using the function "get_random_cards" from the players class.