Course Level
CS1
Knowledge Unit
Fundamental Programming Concepts
Collection Item Type
Assignment
Synopsis

In this assignment students work either individually or in pairs to write a program that plays the rock, paper, scissors with the user. Students must prompt the user for a choice of move, choose a move for the computer to make, and then display the results of the game. Students can choose whether their program plays honestly or cheats. This assignment requires students to work with basic console i/o and variables. It is particularly useful as a first assignment.

Recommendations

Integrate pair programming when it is appropriate for students to collaborate on a lab, assignment, or project. The “driver” controls the mouse and the keyboard, while the “navigator” makes suggestions, points out errors, and asks questions. Partners routinely switch roles to gain the benefits of each role.

Engagement Highlights

Uses a well-known game (Rock, Paper, Scissors) as a way of providing Meaningful and Relevant Context. Students can choose how the AI plays and what version of rock, paper, scissors to use as a way of Incorporating Student Choice.

Materials and Links

Materials

Computer Science Details

Programming Language
Python

Material Format and Licensing Information

Creative Commons License
CC BY-NC