Escolar Documentos
Profissional Documentos
Cultura Documentos
Table of Contents
Introduction:.................................................................................................................................................. 2
Task-1 ........................................................................................................................................................... 3
The class diagram ..................................................................................................................................... 3
Task-2 ........................................................................................................................................................... 4
The activity diagram ................................................................................................................................. 4
Task-3 ........................................................................................................................................................... 5
Use case diagram ...................................................................................................................................... 5
Task-4 ........................................................................................................................................................... 6
Code Structure .......................................................................................................................................... 6
Program Testing ...................................................................................................................................... 10
Task-5 ......................................................................................................................................................... 13
Introduction: It is a text adventure game that was famous in the early days of home
computing. A player has to be commands to play this game. In this game, there are 4 rooms and
4 directions like east, west, south and north. A player can go any room by commanding and he
can pick up anything what are kept in rooms.
Task-1
There are 5 classes in my program. That is given below-
1. Input class,
2. Inventory class,
3. Item class,
4. Main class and
5. Room class.
Task-2
The activity diagram is attached below-
start
Press S Press W
Food/Water Not found
You cant go
that way
Drawing Room Library Room
Press E Press N Press N/W
Press W Press S
Bath Room
Press S/W
Press S/E
END Game
Press Quit Anytime
Task-3
Use case diagram is given below-
Play Game
Give
instructions
Select
Direction
extended
Change another
Player Game End
room
Select available
items
Task-4
Code Structure
Screenshot for- Input class:
Program Testing
1. Program Running at Dining room-
9. To go Library room-
Task-5
I have completed the implementation of the program successfully. The Program is in zip file
which is attached in CD.
Conclusion: The program is about text adventure game. I have tried to complete the program
thats why user can easily handle it. I faced some problems but our class lecturer Tasnuva Ali
helped me to overcome this problem.