Monday, April 23, 2012

from object in Tuple[of Sets()]: - is giving me the whole Tuple back instead of just one Set

I'm starting to write an AI for a uni portfolio in Python.



The AI is for a game called Planet Wars, which is a clone of GalCon (Galactic Confusion).



It's in it's basic stage thus far. My goal is to write an AI which loosely follows Sun Tzu's the Art of War, as I interpret it for the game.



I'm kludging through, learning as I go, but for the life of me I can't figure out why line 92 gives me the whole of self._currentTactics instead of just one tactic at a time...



I'd love it if the lovely people around here could help me out.



Just the AI File:



http://pastebin.com/XXYiRzh7



The whole game's code(requires pygame):



https://www.dropbox.com/sh/mma5qwd2iv0i81d/mpemB7zlhT





No comments:

Post a Comment