Tuesday, October 26, 2010

LabTest#2 -- Sample Output ( In Accordance to the Main Program given below )

  • ~~OUTPUT 1:~~ 
    DUNGEON[1][0] CONTAINS ::
    Cell[0]: Goblin1 GOBLIN
    DUNGEON[1][1] CONTAINS ::
    Cell[0]: Ghost1 GHOST
    DUNGEON[2][1] CONTAINS ::
    Cell[0]: Zombie1 ZOMBIE

    ~~OUTPUT 2:~~
    DUNGEON[1][1] CONTAINS ::
    Cell[0]: Ghost1 GHOST
    DUNGEON[1][2] CONTAINS ::
    Cell[0]: Goblin1 GOBLIN
    DUNGEON[2][1] CONTAINS ::
    Cell[0]: Zombie1 ZOMBIE

    ~~OUTPUT 3:~~
    DUNGEON[1][1] CONTAINS ::
    Cell[0]: Ghost1 GHOST
    DUNGEON[1][2] CONTAINS ::
    Cell[0]: Goblin1 GOBLIN
    DUNGEON[1][3] CONTAINS ::
    Cell[0]: Ghost2 GHOST
    DUNGEON[2][1] CONTAINS ::
    Cell[0]: Zombie1 ZOMBIE

    ~~OUTPUT 4:~~
    DUNGEON[1][1] CONTAINS ::
    Cell[0]: Ghost1 GHOST
    DUNGEON[1][2] CONTAINS ::
    Cell[0]: Goblin1 GOBLIN
    Cell[1]: Ghost2 GHOST
    DUNGEON[2][1] CONTAINS ::
    Cell[0]: Zombie1 ZOMBIE

    ~~OUTPUT 5:~~
    DUNGEON[1][0] CONTAINS ::
    Cell[0]: Ghost2 GHOST
    DUNGEON[1][1] CONTAINS ::
    Cell[0]: Ghost1 GHOST
    DUNGEON[1][2] CONTAINS ::
    Cell[0]: Goblin1 GOBLIN
    DUNGEON[2][1] CONTAINS ::
    Cell[0]: Zombie1 ZOMBIE

    ~~OUTPUT 6:~~
    DUNGEON[1][0] CONTAINS ::
    Cell[0]: Ghost2 GHOST
    DUNGEON[1][1] CONTAINS ::
    Cell[0]: Ghost1 GHOST
    Cell[1]: Goblin2 GOBLIN
    DUNGEON[1][2] CONTAINS ::
    Cell[0]: Goblin1 GOBLIN
    DUNGEON[2][1] CONTAINS ::
    Cell[0]: Zombie1 ZOMBIE

    ~~OUTPUT 7:~~
    Monster: Ghost1 GHOST AT DUNGEON[1][1] GETS EATEN UP
    Monster: Goblin2 GOBLIN AT DUNGEON[1][1] GETS EATEN UP
    DUNGEON[1][0] CONTAINS ::
    Cell[0]: Ghost2 GHOST
    DUNGEON[1][1] CONTAINS ::
    Cell[0]: Zombie1 ZOMBIE
    DUNGEON[1][2] CONTAINS ::
    Cell[0]: Goblin1 GOBLIN

    ~~OUTPUT 8:~~
    DUNGEON[1][0] CONTAINS ::
    Cell[0]: Ghost2 GHOST
    DUNGEON[1][1] CONTAINS ::
    Cell[0]: Zombie1 ZOMBIE
    DUNGEON[2][2] CONTAINS ::
    Cell[0]: Goblin1 GOBLIN

    ~~OUTPUT 9:~~
    Goblin2 GOBLIN IS DEAD
    DUNGEON[1][0] CONTAINS ::
    Cell[0]: Ghost2 GHOST
    DUNGEON[1][1] CONTAINS ::
    Cell[0]: Zombie1 ZOMBIE
    DUNGEON[2][2] CONTAINS ::
    Cell[0]: Goblin1 GOBLIN

    ~~OUTPUT 10:~~
    Ghost1 GHOST IS DEAD
    DUNGEON[1][0] CONTAINS ::
    Cell[0]: Ghost2 GHOST
    DUNGEON[1][1] CONTAINS ::
    Cell[0]: Zombie1 ZOMBIE
    DUNGEON[2][2] CONTAINS ::
    Cell[0]: Goblin1 GOBLIN

    ~~OUTPUT 11:~~
    DUNGEON[1][1] CONTAINS ::
    Cell[0]: Zombie1 ZOMBIE
    DUNGEON[1][9] CONTAINS ::
    Cell[0]: Ghost2 GHOST
    DUNGEON[2][2] CONTAINS ::
    Cell[0]: Goblin1 GOBLIN

  • No comments: