Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set the default subtitles language in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Rock, Paper, Scissors With Python: A Command Line Game (Summary)

Congratulations! You just finished coding a game in Python! You now know how to create rock paper scissors from scratch, and you’re able to expand the number of possible actions in your game with minimal effort.

In this course, you:

  • Coded your own rock paper scissors game
  • Took in user input with input()
  • Played several games in a row using a while loop
  • Cleaned up your code with IntEnum and functions
  • Described more complex rules with a dictionary
  • Learned that lizards poison Spock

Download

Sample Code (.zip)

6.7 KB

Download

Course Slides (.pdf)

2.7 MB

dngrant on Sept. 29, 2021

Outstanding Chris. Thank you and the RP team for putting this together. I’ve never dealt with IntEnums before. I will look for ways to put this into practice.

Become a Member to join the conversation.