Quantcast
Channel: Text-based role-playing game - Code Review Stack Exchange
Browsing latest articles
Browse All 4 View Live

Answer by Pavlo Slavynskyy for Text-based role-playing game

I assume this your first project of such size, and if so, that's a great work. It's really cool you've done all this.Bad RecursionThis is the worst problem in your code. You see, calling the function...

View Article



Text-based role-playing game

I created a text-based RPG.game.pyimport randomimport osimport itemsfrom maps import mappaimport pickleclass Player: def __init__(self, name): self.name = name self.lvl = 1 self.points = 5...

View Article

Answer by Schmuddi for Text-based role-playing game

Having programmed many similar games, I'll focus on one particular aspect pertaining to game development: the data structure that you use in items.py to represent items, skills, and monsters.Right now,...

View Article

Answer by Reinderien for Text-based role-playing game

This is a lot of code. It's good that you've shared it all, but I'll probably have to stop short of offering a complete refactor.You should not be storing derived values as variables; this risks the...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images