Comp Sci 2026 Computer Science 2026

Assignment: Rock, Paper, Scissors Tournament

Due 11/9 at 11:59pm

Rock, Paper, Scissors is a classic game. But what if you played multiple rounds and kept score? In this project, you will write a program that plays multiple rounds against the computer, keeps track of wins and losses, and crowns a champion!

Your program must meet the following specifications:

For example, after 3 rounds, your program might print:

=== ROUND 1 ===
You chose: rock
Computer chose: scissors
You win! 🎉

=== ROUND 2 ===
You chose: paper
Computer chose: paper
It's a tie!

=== ROUND 3 ===
You chose: scissors
Computer chose: rock
Computer wins!

=== FINAL SCORE ===
You: 1 win
Computer: 1 win
Ties: 1

The Random Module

The random module lets you pick random values. Import it at the top and use random.choice() to pick from a list:

import random

moves = ['rock', 'paper', 'scissors']
computer_move = random.choice(moves)
print(computer_move)  # could be any of the three

Game Rules

Example Code

Here is a starting point. Fill in the TODO comments to meet the specifications above!

import random

def get_winner(player_move, computer_move):
    # TODO: return 'player', 'computer', or 'tie'
    pass

# Game setup
moves = ['rock', 'paper', 'scissors']
player_wins = 0
computer_wins = 0
ties = 0

# TODO: Inside a loop get the player's move, call get_winner(), and
#       keep track of score. Print results after the loop finishes.
Additional Challenges (not required)

When you’re happy with your program, upload the .py file to ThinkWave.