Advertisement
Guest User

asfd.py

a guest
Mar 31st, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. class Room():
  2. def __init__(self, rnum, rname, rdesc, north=None, south=None, east=None, west=None):
  3. self.rnum = rnum
  4. self.rname = rname
  5. self.rdesc = rdesc
  6. self.north = north
  7. self.south = south
  8. self.east = east
  9. self.west = west
  10.  
  11. class Player():
  12. def __init__(self, name, health, damage, money, room):
  13. self.name = name
  14. self.health = health
  15. self.damage = damage
  16. self.money = money
  17. self.room = room
  18.  
  19. player = Player(name="blank", health=100, damage=20, money=0, room=1)
  20.  
  21. main = Room(rnum=0, rname="Main", rdesc="Welcome to room Main")
  22. north_room = Room(rnum=1, rname="North Room", rdesc="Welcome to the north room")
  23. south_room = Room(rnum=2, rname="South Room", rdesc="Welcome to the south room")
  24. east_room = Room(rnum=3, rname="East Room", rdesc="Welcome to the east room")
  25. west_room = Room(rnum=4, rname="West Room", rdesc="Welcome to the west room")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement