Rock, Paper, Scissors, Code!

Introduce students to the fundamentals of Python programming through a text-based rock, paper, scissors game, using ChatGPT as a code evaluation tool to find the edge cases of their program.

Assignment Details

AI Theme




Learning Objectives

Reflect on the effectiveness of using ChatGPT as a tool for improving code reliability


Students should have an understanding of variables, inputs, edge cases, if statements, and Python’s random library before attempting this assignment.


  1. Write a Python program that lets the user play a game of rock, paper, scissors. The program must accept user input, randomize the computer’s response, and print the result of the match.
  2. Input your code into ChatGPT and ask it to identify the program’s edge cases (i.e., points of possible failure in your code or user inputs that could return an error and break the program).
  3. Assess ChatGPT’s response and determine if there are any edge cases ChatGPT missed. Write out your own list of possible edge case inputs that could break your program. 
  4. Fix any edge cases identified through this process and test them against the edge cases you and ChatGPT found. 
  5. Submit the original program, ChatGPT’s response, your list of edge case inputs, and the final file with implemented fixes.
  6. Written reflection (200 words): Reflect on the effectiveness of ChatGPT as a tool for improving the reliability of your program. What aspects of coding did ChatGPT excel at, and where did it fall short?


DuPont Analysis of Coca-Cola

Conduct a DuPont analysis of Coca-Cola using real-world data, comparing and contrasting your results with an analysis conducted by Microsoft’s chatbot Copilot.


How to Train Your AI Dragon

Empower educators to craft innovative activities by training AI tools to enhance student learning outcomes, generate educational content, and design evaluation methods.