CS112_31_assignment 4B

CS112_31_assignment 4B - interesting in its own right. The...

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

View Full Document Right Arrow Icon
CS112 Assignment 4B – Darwin Due date: May 6 In this assignment, your job is to build a simulator for a game called Darwin invented by Nick Parlante— a game that has become a classic assignment. The assignment has a fourfold purpose: 1. To give you a chance to write a large multi-module programs. 2. To illustrate the importance of modular decomposition. The entire program is broken down into a series of modules that can be developed and tested independently. 3. To stress the notion of ADTs as a mechanism for sharing data between modules without revealing the representational details. 4. To let you have fun with an application that is extremely captivating and algorithmically
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

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

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7

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

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9

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

View Full DocumentRight Arrow Icon
Background image of page 10
Background image of page 11

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

View Full DocumentRight Arrow Icon
Background image of page 12
Background image of page 13

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

View Full DocumentRight Arrow Icon
Background image of page 14
Background image of page 15

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

View Full DocumentRight Arrow Icon
Background image of page 16
Background image of page 17

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

View Full DocumentRight Arrow Icon
Background image of page 18
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: interesting in its own right. The Darwin world The Darwin program simulates a two-dimensional world divided up into small squares and populated by a number of creatures . Each of the creatures lives in one of the squares, faces in one of the major compass directions (North, East, South, or West) and belongs to a particular species, which determines how that creature behaves. For example, one possible configuration of the world is shown below: What to Turn In As always, you will need to submit your source code; that is, you will need to electronically submit the following files: world.c , species.c , creature.c , and darwin.c Electronic files must be submitted by the due date....
View Full Document

Page1 / 18

CS112_31_assignment 4B - interesting in its own right. The...

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

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