0
votes
1answer
13 views

Python Adventure RPG Inventory Code (Text)

I am trying to make a text-based rpg in Python, Pygame, and i need a way to manage my inventory slots. Currently, i have no way to find out what is currently equipped, and can only overwrite it, even ...
0
votes
2answers
47 views

Extending a simple Python console program with external code. Did I handle this correctly?

I'm a hobbyist Python programmer with not much experience. I wrote some code for a solution to a Tic Tac Toe AI problem on the internet. Then yesterday I wrote a simple console Tic Tac Toe game for ...
6
votes
2answers
234 views

python: design of a simple game

I am trying to code Battleship. It should be a text one-player game against computer where computer and human player take turns in shooting at opponent's ships. I decided to start implementation with ...
1
vote
2answers
129 views

Database calls with Python Flask and SQLAlchemy

I am creating a Python Flask webservice and this is basically how I am doing all of my database calls if a webservice needs to interact with the database: @event.route("/somepath/<value>", ...
4
votes
1answer
169 views

I'd like a general review on this script that scrubs data from a csv file

Really, what I would like to know is: "What does this script tell you about how I need to improve as a programmer?" I'm somewhat new to both Python and programming, so feel free to minimize your ...
10
votes
2answers
519 views

Replacing Python Classes with Modules

I try to avoid using classes in Python as much as possible; if I don't plan on building on it, I don't build it in the first place. It helps me avoid Java-like classes like FileDownloader(), when I ...
5
votes
1answer
201 views

Improve class design

I am writing a wrapper around the GeUserArea class of Cinema 4D's Python API to enable creating user interfaces using an object orientated interface. I've already written 2 prototypes, but I am not ...
3
votes
1answer
269 views

What would be a clean interface for this?

I'd like some suggestions regarding how to implement the programmer/scripter interface for building entities in my game. I know what the interaction should be, and what the classes are going to be. I ...