Python Forum
Rock paper Scissors
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rock paper Scissors
#2
Hello,

the code looks good to me.
It is common with this kind of games to have a while loop and let player replay if he wants, instead of rerunning the program. But that is up to you.
There are ways to shorten the part of code that checks for the winner. But in case of a simple game like RPS, the way you wrote it works fine and is readable.
Reply


Messages In This Thread
Rock paper Scissors - by Milan - Jan-29-2021, 03:07 PM
RE: Rock paper Scissors - by j.crater - Jan-31-2021, 11:29 AM
RE: Rock paper Scissors - by Milan - Feb-01-2021, 03:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Code review of my rock paper scissors game Milan 0 2,100 May-25-2022, 06:59 AM
Last Post: Milan
  2nd Project: Rock, Paper, Scissors MiNigle 3 2,783 Jun-05-2020, 12:50 PM
Last Post: MiNigle
  Rock Paper Scissors Game NectDz 5 3,389 May-31-2020, 12:40 PM
Last Post: NectDz

Forum Jump:

User Panel Messages

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