Hi all.
Being the dork I am, I’m in the process of trying to create a Zelda-themed text RPG. I’ve been going through the process of just getting the basic classes – items, characters – coded up. I also created a small Die class that represents an n-sided die for probability stuff. The code for that class is here:
I also have my item class that currently is basic stuff for items – weapons, healing, etc. That code is here:
My item.py tests were working fine until I added the import statement, which I’m going to use later. The interpreter gave me “ImportError: cannot import name ‘roll’”. I looked into it and saw some people on StackOverflow getting it, but they were having circular dependency issues. I doubt that’s the case here – die.py only imports from the random module. That said, what’s going on? Also, my code is all in one directory. For now, anyways.