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

Unlock This Lesson

This lesson is for members only. Join us and get access to thousands 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 your subtitle preferences 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 refer to our video player troubleshooting guide for assistance.

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.

stephanduesterhoeft on March 29, 2023

Thx Chris. That was fun!

Become a Member to join the conversation.