Share your repls and programming experiences

← Back to all posts
Rock, Paper, Scissors... In Python???
[deleted]

That's right, folks.

In just 15 lines of Python 3 code, you can create your own rock, paper, scissors game! I hope you enjoy. 😊

Comments
hotnewtop
FlaminHotValdez (690)

ngl it's not that tough lol if spam

FallenAngel6 (31)

I don't mean to advertise/brag, but here's my improved version. Check it out if you want.

zaydi (10)

WOW amazing The way you coded it in fifteen lines And how advanced this is impressive

[deleted]

Thanks, @zaydi!

EliasTheGreat (45)

cool, some suggestions add a loop that repeats any range of turns of the players choice and then keep a score of wins of you and wins of the bot

CodeMaster007 (108)

Cool! One thing I would add is to loop it so you can chose to play again. Cool game though!

[deleted]

Thanks, @CodeMaster007! I will add that feature soon. :-)

[deleted]

.

CodingCactus (4366)

Hi, we've unlisted this as it does not contain much code. If you add some more and then reply to this comment, we can take another look and may relist it.

[deleted]

@CodingCactus OK I added some more code to make the game a bit more fun. :-)

CodingCactus (4366)

@SharpCodeDev thank you, i have relisted it for you

[deleted]

Thanks, @CodingCactus!

MikeJMS8910 (160)

well like it isn't that insane that it is python. I've made one before but I won't advertise it. It was like 300 lines of code but it did use Machine Learning and wasn't random.

JWZ6 (648)

why do I feel like this is low-effort...? I created 1 rps game that took 121 lines of code and it's considered low-effort.......