Use list operations to simplify deck operations #5

Closed
barraponto opened this Issue Feb 19, 2015 · 1 comment

Projects

None yet

2 participants

@barraponto
Collaborator

Issue #4 introduced list operations, allowing for four_cards = 4 * ['MyCard'].
That's cool, but we are still looping over ndecks to add the cards several times -- once per deck.
Instead, we could just have something like deck = ndecks * deck, don't you think?

@MarcoWorms
Owner

Just commited the change, thanks for the tip. BTW I'm gonna work on shrinking that bunch of "if's" in the main game loop.

@MarcoWorms MarcoWorms closed this Feb 19, 2015
@MarcoWorms MarcoWorms reopened this Feb 19, 2015
@MarcoWorms MarcoWorms closed this Feb 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment