Advertisement
TorroesPrime

interpreter.py

Aug 6th, 2020 (edited)
1,628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.95 KB | None | 0 0
  1. import room
  2. #from room import manuel_room
  3. from game_state import manual_state as game_state
  4. from class_exit import manuel_exit
  5. from dungeon import manual_Dungeon
  6.  
  7. game_state_instance = game_state()
  8. def test_dungeon_build():
  9.     dungeonName = "Test Dungeon"
  10.     roomOneExits = ()
  11.     roomTwoExits = ()
  12.     roomOne = room.manuel_room("Entry Room","The first room in the test dungeon",roomOneExits)
  13.     roomTwo = manuel_room("second Room","The second room of the test dungeon",roomTwoExits)
  14.     exit1 = manuel_exit("n",roomOne,roomTwo)
  15.     exit2 = manuel_exit("s",roomTwo,roomOne)
  16.     roomOne.addExit(exit1)
  17.     roomTwo.addExit(exit2)
  18.     testDungeon = manual_Dungeon(dungeonName,roomOne)
  19.     testDungeon.addRoom(roomTwo)
  20.  
  21.     return manual_Dungeon(dungeonName,roomOne)
  22.  
  23. def interpreter():
  24.    
  25.        testDungeon = test_dungeon_build()
  26.        print(f"\nWelcome to {testDungeon.title}")
  27.        print(game_state_instance)
  28.  
  29.  
  30. interpreter()
  31.  
  32.  
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement