Skip to content

I got an IndexError when I used teleport #7

@natkam

Description

@natkam

I opened the teleport and I got an IndexError: list index out of range. Here's what I got:

Traceback (most recent call last):
File "rogue.py", line 192, in
curses.wrapper(main)
File "C:\Python34\lib\curses__init__.py", line 94, in wrapper
return func(stdscr, _args, *_kwds)
File "rogue.py", line 187, in main
game.run()
File "rogue.py", line 175, in run
action = self.action()
File "rogue.py", line 127, in action
return actions.Move(self.player, self.map.tiles[y+randint(1,20)][x+randint(1,70)])
IndexError: list index out of range

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions