Assignment 16 - Image Puzzle

Example Output

Source

This is a nifty assignment from 2011 proposed by Nick Parlante. Source

Learning Outcomes

  1. Input/Output
  2. Loops
  3. Conditions
  4. Compare data from multiple data structures

Goals

The purpose of this assignment is to learn to

  1. Read and display image data from a ppm file
  2. Analyze and manipulate image data
  3. Compare data from multiple data structures

Description

Tasks

The goal of this assignment is to solve a puzzle by finding where pieces of a pin code fit into a background image. The background image is composed of random noise and each number image overlays onto the grid at exactly 1 place. The programmer must determine where this one place is on the background and draw the numbers in revealing the full pin code.

Filling the image class

First the programmer must fill in the empty functions of the image class. These include reading a ppm image, overlaying one image onto another, and finding what position one image overlays onto another without overlap.

Extensions

Help

For C++

Bridges documentation

Color documentation

ColorGrid documentation

For Java

Bridges documentation

Color documentation

ColorGrid documentation

For Python

Bridges documentation

Color documentation

ColorGrid documentation