Python Forum
Rock Paper Scissors Game, I need help.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rock Paper Scissors Game, I need help.
#3
(Feb-14-2019, 04:04 AM)ichabod801 Wrote: You are using the or operator wrong. You need to have an expression on each side of the or (see here for details). What you want is:

valid = ('rock', 'paper', 'scissors')
if p1 in valid and p2 in valid:

Thank you so much for your help! I now know what I did wrong. Thank you again.
Reply


Messages In This Thread
RE: Rock Paper Scissors Game, I need help. - by extraguac - Feb-14-2019, 04:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock/Paper/Scissors Game 1 abscorpy 6 3,935 Dec-01-2020, 10:08 PM
Last Post: metulburr
  randomization code in rock, paper, scissors cel 4 2,774 May-28-2020, 08:48 PM
Last Post: cel
  rock paper scissors game abscorpy 8 4,706 Feb-14-2019, 07:20 PM
Last Post: abscorpy
  [PyGame] Rock,paper,scissors Game(beginner) r0d 10 8,984 Jan-16-2018, 08:01 PM
Last Post: r0d

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020