100 likes | 319 Views
Assignment 1. 系统分析与设计. 组员:傅允聪、李俊龙、李珠刚、连凌淦、毛飞霏 演讲 人:连凌淦. Priests and Devils
E N D
Assignment 1 系统分析与设计 组员:傅允聪、李俊龙、李珠刚、连凌淦、毛飞霏 演讲人:连凌淦
Priests and Devils Priests and Devils is a puzzle game in which you will help the Priests and Devils to cross the river within the time limit. There are 3 priests and 3 devils at one side of the river. They all want to get to the other side of this river, but there is only one boat and this boat can only carry two persons each time. And there must be one person steering the boat from one side to the other side. In the flash game, you can click on them to move them and click the go button to move the boat to the other direction. If the priests are out numbered by the devils on either side of the river, they get killed and the game is over. You can try it in many ways. Keep all priests alive! Good luck!
Bank Boat Priest Devil
Attribute Operation Bank Side PriNum DevNum isValid() Boat Passengers WhichBank Move() Priests WhichBank Board() Disebank() Devils WhichBank Board() Disebank()
继承(泛化) Generalization 不解释~~~ 关联 Association 强关系,两者存在某种联系 聚合 Aggregation 部分和整体的关系,两者可以分开存在 组合 Composition 部分和整体的关系,且两者必须在同时存在才有意义 依赖 Dependence A的某些方法B作为参数或者局部变量,则A依赖B,两者都能独立存在