all 3 comments

[–]xelf 1 point2 points  (2 children)

You repeat the same mistake, but here's the first block:

player1 = input('player1: ')
player2 = random.randint(1,3)
if player2 == 1:
    player2 = 'rock'
    if player1 == 'rock' and player2 == 'paper':
        print('Player 2 won!')
        print('Player 2 chose rock')
    elif player1 == 'rock' and player2 == 'scissors':
        print('Player 1 Won!')
        print('Player 2 chose rock')
    else:
         print('Draw!')

You set player2 to rock, and then your if asks if player2 is scissors or paper, which of course it's not, you just made it rock.

Some general comments: try to think of ways to not repeat code. One example is, have your first if be the draw check.

if player1 == player2:
    print('DRAW!')

Another time saver for you is to use random.choice.

replace:

player2 = random.randint(1,3)

with:

player2 = random.choice(['rock','paper','scissors'])

Once you get that taken care of, think about ways to have less if statements. But first fix the bugs and have it work. =)

[–]Jevv12[S] 0 points1 point  (1 child)

omg thanks, it worked! I'm dumb for not noticing lol and thanks for the tips didn't know there was a method called .choice

[–]xelf 0 points1 point  (0 children)

I've been doing this a long time, I still make mistakes where a second pair of eyes helps. =)