IS1014 Final Project
Project Description
The project is based on the code from the CD that came with the textbook
(also on the course web-site) called "figure.c". The assignment is to
complete a working interactive program according to the specifications below.
- Submit the code (whether you have completed the project or not!) to
pmunro@mail.sis.pitt.edu with the subject line "IS1014 FINAL PROJECT SOURCE
CODE" by classtime on Dec 3.
- A paper (5-10 pages) must be turned in class on Dec 3 describing
how your program works. It can be in the form of source code with
very detailed documentation. If you have worked as part of a group, you
must submit a page that details which part(s) of the project were
specifically your responsibility.
- Students should bring their programs to class on Dec 3 and 10 (on
floppy), and be prepared to describe the projects to this class.
- The program pony.c
may help you get started with certain
aspects of the project, especially the walking and the ground surface. To
compile this program, you will also need the file
readtex.h in your directory.
such as
Starting with the program figure.c which renders a simple human-like
"cylinder person" (c-person), your assignment is to create a group of
three individuals of different sizes and colors.
Details for individual projects and groups are given below. These are
minimum requirements with extra points awarded for creative
enhancements. Also, significant extra points will be given if you or your
group goes to the next "level" assignment.
For a person working alone
The user should be
able to make all the c-people raise their arms in unison by pressing
the "u" key, and lower the arms by pressing "d". The c-people are
approximately 10 units tall, and they are
standing on a green square surface 100 units by 100 units.
Option: Give each person a hat
For a two-person group
For Part B, the c-people should "walk" forward -- that is, they need to
move their legs (and prefereably the knees) and move forward appropriately.
This will probably require some experimentation. The walking needs to
be under the control of the user. The user can select a c-person to control
by typing a digit. Then the user can type "f" for forward, and "s" for stop,
"l" for turning left 5 degrees, and "r" to turn right. The c-people
automatically stop before they walk out of the green square.
Option: Prevent the c-people from colliding -- they should stop if they come
too close to another c-person.
For a three-person group
The c-people walk under the control of the computer program. The c-people
begin in random positions. One person
(colored red) walks forward five steps and randomly turns left or right
by 15, 30, or 45 degrees. A blue colored c-person follows the red c-person by
walking in the direction toward the red one. The blue person walks at half
the speed of the red person. A green c-person, walking at the same speed
as the blue one, follows the blue person if the user types "b" and
follows the red one if the user types "r".