In-class exercise Code Defenders

High-level goal

The goals of this game-based exercise are to (1) solidify software testing skills and (2) reason about potential sources of program errors.

Set up

  1. Team up in groups of size 3. Unlike previous in-class exercises, this is an individual assignment, but you will be playing in a team of 3 against another team of 3 students.
  1. Log into the Code Defenders game, hosted on Attu, using the link, username, and password you received in an email.

Overview

You will play a battleground-style game of inserting and detecting defects. The general gameplay is:

You will play three games (described below).

Instructions

  1. Join the easy game (~10 min), which will be the only open game. This game will have both tests and bugs visible. The goal is to familiarize yourself with the game interface and to freely communicate with opponents.

  2. Join the hard game (~20 min). This game will have both tests and bugs invisible.

  3. For a final challenge, join the last game (~15 min) to play against staff.

Deliverables

  1. Create subtle defects (bugs) and tests in the game. You do not need to submit anything for this part, as we can collect these directly from the game server.

Frequently Asked Questions