From fef10a63dc67d3acee1af3a224876839bdf96e7b Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Fri, 28 Aug 2009 17:21:55 -0600 Subject: [PATCH] Fix egregious logic bug in roshambo server The second player always won :) --- roshambo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roshambo.py b/roshambo.py index 41eab75..81e2497 100755 --- a/roshambo.py +++ b/roshambo.py @@ -13,9 +13,9 @@ class Roshambo(game.TurnBasedGame): players[0].write('tie') players[1].write('tie') self.moves = [] - elif moves in (('rock', 'scissors'), - ('scissors', 'paper'), - ('paper', 'rock')): + elif moves in (['rock', 'scissors'], + ['scissors', 'paper'], + ['paper', 'rock']): # First player wins self.declare_winner(players[0]) else: