Mar-07-2020, 04:43 PM
(This post was last modified: Mar-07-2020, 04:43 PM by scarney1988.)
Thank you. That was a great response. Very very helpful.
I had initially went with the set methods because I wanted to eventually add in a Joker card which the user could input value and suit. I guess I could just use something like the following to achieve that:
I had initially went with the set methods because I wanted to eventually add in a Joker card which the user could input value and suit. I guess I could just use something like the following to achieve that:
def assign_joker(joker_card): # FUNCTION CALLED TO TAKE USER INPUT FOR CARD VALUE / SUIT (OMITTED), THEN RETURN THE CARD # PROPERLY ASSIGNED AS FOLLOWS return (joker_card = Card(chosen_value, chosen_suit))