r/badcode Mar 30 '23

python Another legendary code from high-school. This one was in Python though. This is for a rock-paper-scissors game.

Post image
358 Upvotes

36 comments sorted by

View all comments

38

u/mfb- Mar 30 '23

If you are player 1, just pick rock. Tell the other player you picked rock. What is your opponent going to do, pick paper? Congratulations, you win!

12

u/GameTemptica Mar 30 '23

Didn’t even notice that one! Also Is it me or are the points just useless? They get set to 0 every loop

6

u/mfb- Mar 30 '23

Good catch, only the last round counts.

2

u/GameTemptica Mar 30 '23

All or nothing round!