View Single Post
Old Aug 16th, 2007, 12:17 AM   #1
Primusville
Newbie
 
Join Date: Aug 2007
Posts: 11
Rep Power: 0 Primusville is on a distinguished road
Problem with file input

Well, I recently got back into Yu-Gi-Oh cards (the show sucks, but the game is actually fun) as just another way to pass time. Anyway, it gave me the idea to write a Yu-Gi-Oh TCG game in Python. Just command line to start with, maybe with graphics later. My problem is, I want to use text files as databases to hold card information so that I can easily add new cards, but I can't think of a good way to input the file in Python and then make it so that each card adheres to a certain class, and is treated a a separate instance (unless there is a better way). How would I go about doing this?

Many thanks in advance.
Primusville is offline   Reply With Quote