Locked learning resources

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

Unlock This Lesson

Locked learning resources

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

Unlock This Lesson

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
Avatar image for dngrant

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.

Avatar image for stephanduesterhoeft

stephanduesterhoeft on March 29, 2023

Thx Chris. That was fun!

Become a Member to join the conversation.