Python Forum
[PyGame] Rock,paper,scissors Game(beginner)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Rock,paper,scissors Game(beginner)
#8
You have several problems. Remove the 's' after the percent sign preceding 'playerx' on lines 15, 17 and 19. You do not need the extra parenthesis around 'playerx' in lines 7, 8, 11, 13 15, 17, and 19. Finally, you have two variables: 'choose' and  'choose1', which you do not use. I believe you mean to use those in your 'if/elif/else' conditional, rather than players name.

There may be more, as was pointed out, depending on the Python version you are running.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Messages In This Thread
Rock,paper,scissors Game(beginner) - by r0d - Sep-28-2017, 09:19 PM
RE: Rock,paper,scissors Game(beginner) - by nilamo - Sep-28-2017, 09:20 PM
RE: Rock,paper,scissors Game(beginner) - by r0d - Sep-28-2017, 09:25 PM
RE: Rock,paper,scissors Game(beginner) - by nilamo - Sep-28-2017, 09:27 PM
RE: Rock,paper,scissors Game(beginner) - by r0d - Sep-28-2017, 09:39 PM
RE: Rock,paper,scissors Game(beginner) - by nilamo - Sep-28-2017, 11:03 PM
RE: Rock,paper,scissors Game(beginner) - by sparkz_alot - Sep-29-2017, 12:13 AM
RE: Rock,paper,scissors Game(beginner) - by r0d - Sep-29-2017, 11:45 PM
RE: Rock,paper,scissors Game(beginner) - by r0d - Jan-16-2018, 08:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock/Paper/Scissors Game 1 abscorpy 6 3,949 Dec-01-2020, 10:08 PM
Last Post: metulburr
  randomization code in rock, paper, scissors cel 4 2,784 May-28-2020, 08:48 PM
Last Post: cel
  rock paper scissors game abscorpy 8 4,731 Feb-14-2019, 07:20 PM
Last Post: abscorpy
  Rock Paper Scissors Game, I need help. extraguac 2 2,623 Feb-14-2019, 04:34 AM
Last Post: extraguac

Forum Jump:

User Panel Messages

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