• 沒有找到結果。

2Requirements 1Description Homework#4

N/A
N/A
Protected

Academic year: 2022

Share "2Requirements 1Description Homework#4"

Copied!
2
0
0

加載中.... (立即查看全文)

全文

(1)

Object Oriented Software Design (NTU, Class 01/02, Spring 2010) instructor: Hsuan-Tien Lin

Homework #4

RELEASE DATE: 05/13/2010 DUE DATE: 05/27/2010, noon

As directed below, you need to upload your submission file to the designated place on the course website.

Any form of cheating, lying or plagiarism will not be tolerated. Students can get zero scores and/or fail the class and/or be kicked out of school and/or receive other punishments for those kinds of misconducts.

Discussions on course materials and homework solutions are encouraged. But you should write the final solutions alone and understand them fully. Books, notes, and Internet resources can be consulted, but not copied from.

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time. In order to maximize the level of fairness in this class, lending and borrowing homework solutions are both regarded as dishonest behaviors and will be punished according to the honesty policy.

Both English and Traditional Chinese are allowed for writing any part of your homework (if the compiler recognizes Traditional Chinese, of course). We do not accept any other languages.

1 Description

The POOPet is ready to breed, and fight! You have lots of flexibility to design a fight game between POOPets this time. A fight game happens at an POOArena, with two or more POOPet instances inside.

Each POOPet comes with at least three properties, its health point (HP), its agility value (AGI), and its name, and with at two actions: moving, or performing an action on itself or other pets on the arena. The goal is to decrease the opponent’s HP as soon as possible.

You are asked to implement and demonstrate a prototype of the fight game. As it is only a prototype and probably will be extended by the programming team later, both POOPet and POOArena need to be abstract. Nevertheless, you can resort to polymorphism and use subclasses of POOPet and subclasses of POOArena to make things work. You need to implement at least two kinds of (i.e. two different subclasses of) POOPet, and one kind of POOArena. You can see that there are some other abstract classes in the provided codes. Yes, you need to extend them appropriately.

To make things more realistic, your lazy team leader (a.k.a. CharlieL) did not give you many docu- ments, but only all the source code. No, you cannot modify his source code because he is really stubborn, and you know that he’d only use the main method in POOFight to check your code. So your only chance to please him is to use your creativity under the contract that he has given you. Good luck!

2 Requirements

• Implement your POO(PetKind) and POO(ArenaKind) classes, and any additional classes that you need.

• Write a short report with at most four A4 pages that contains the following items:

(1) your name and school ID

(2) the relations between the classes that you design (3) the advantages of your design

(4) the disadvantages of your design

(5) any part that you implemented that is worth getting “bonus” points

You should submit your report in PDF format. See the course forum for some possible instructions for converting from Word to PDF.

1 of 2

(2)

Object Oriented Software Design (NTU, Class 01/02, Spring 2010) instructor: Hsuan-Tien Lin

3 Special Notes

• 20 bonus (a.k.a. extra) points will be allocated to award creativity—basically how interesting your game is.

• We will REQUIRE your file to be the basic ZIP-formatted (ending with .zip) to help the TAs grade (see the grading lines below).

• We will REQUIRE that you only include the files listed below. Some points may be deducted if you include additional files.

• The TAs will use the following lines on our LINUX machines to do the grading:

unzip your_zip_file

cp /home/faculty/htlin/htdocs/course/oop10spring/doc/hw4/hw4.jar . javac -cp hw4.jar -d . @source_files

source run.sh

4 Submission File

Please upload a single ZIP encrypted file to CEIBA. The zip file should be like b86506054.zip, where the file name should be changed to your own school ID. The ZIP file should contain ONLY the following items:

• POO(PetKind).java (at least two different kinds)

• POO(ArenaKind).java (at least one)

• *.java, which represent any other classes that you implemented

• source files: the list of the java files that you implemented (see above for javac)

• run.sh: your running script that should follow the sample run.sh

• Your report file in PDF format

2 of 2

參考文獻

相關文件

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time.. In order

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time.. In order

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time.. In order

In this homework, you are asked to implement k-d tree for the k = 1 case, and the data structure should support the operations of querying the nearest point, point insertion, and

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time.. In order

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time.. In order

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time.. In order

Use your MATLAB codes with various time steps (e.g., of the form 2 −k ) to see whether the results of your numerical experiments correspond to the theory.. Present your results in