Rock-paper-scissors: Difference between revisions

Whups. buildPair was for an older revision of my code.
m (whups, remove wp from visible portion of the link)
(Whups. buildPair was for an older revision of my code.)
Line 37:
chc = choices[bsct]
return chc
 
def buildPair(a, b):
global ORDER
 
# This will loop through ORDER, from the first element to the last. The
# elements are the order we'll use for sorting. (Particularly important for
# lookups in our RULES dictionary)
for higher in ORDER:
# If this element is in either a or b, then this element should come
# should come first in the tuple we return.
if higher == a:
return (a,b)
elif higher == b:
return (b,a)
 
def checkWinner(a, b):