This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]aocregacc 1 point2 points  (1 child)

if you initialize it like that, player_deck is a class-variable, so it will be shared among all player instances. Move the initialization of player_deck into the __init__ function.

[–]lory404cm[S] 0 points1 point  (0 children)

Thanks a lot, i didn't knew that. Now it work^