Jan-27-2019, 10:19 PM
(This post was last modified: Jan-28-2019, 12:20 AM by Clunk_Head.)
(Jan-27-2019, 09:02 AM)perfringo Wrote: Just thinking aloud: I need to know only winner, because logically another is looser[sic]. There are only three winning combinations (below, list of tuples, winner is first looser[sic] is second), all other combinations are either loosing[sic] or draw.
>>> first_wins = [('Rock', 'Scissors'), ('Paper', 'Rock'), ('Scissors', 'Paper')]
You lost me here. I liked your original %3 concept for projects of higher complexity, but If you're going to repeat the moves I like the readability of my original compound dictionary much better. However, the move validation in a function is a good idea to improve readability.