CS 1102 Homework 2

How to Design Programs: An Introduction to Programming and Computing

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 1102 (A07) Homework 2: the FireFighter game Due: September 6 (Thursday) at 11:59pm via turnin (assignment name hwk2 ). Assignment Goals To make sure you can write programs using combinations of lists and structures. To practice using the design recipe to organize a nontrivial program. The Assignment Remember to follow the Expectations on Homework when preparing your solutions, including the academic honesty policy . Your job is to write a simple interactive game in which the player drops water from a plane onto fires on the ground; the goal of the game is to put out all of the fires by dropping enough water on them. A sample appears to the right. The plane flies back and forth across the screen. The player can change the direction of the plane by pressing the left and right arrow keys. The player can also drop water from the plane by pressing the down arrow key. Each fire has an intensity: when a drop of water hits a fire, the intensity decreases. If a fire burns without water hitting it, its intensity increases. A fire is extinguished when its intensity reaches zero. You will build this game
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
using the same world.ss teachpack used in lab #1. If you need more documentation than was in lab 1, look up world.ss in the DrScheme helpdesk. Work in the "Beginner with List Abbreviations" language level. To write this game, you will need to provide at least the following: A data definition for the "world", which is a single data structure containing all of the information that makes up the current configuration of the game (such as the plane, fires,
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This homework help was uploaded on 02/06/2008 for the course CS 1102 taught by Professor Fisler during the Spring '07 term at WPI.

Page1 / 4

CS 1102 Homework 2 - CS 1102 (A07) Homework 2: the...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online