ETD Day 0 – reading python tutorials

While finishing the paper for the ECF conference (or to put it in a more honest way, while procrastinating playing DTD in Kongregate when I should have been finishing the paper for the ECF conference), I had this idea: What if I wrote a GA that evolved a labyrinth for DTD?

After that, the flood of ideas came through (and the paper was quickly forgotten for an hour or two). I drew a quick scheme for the genome representation and for the rough simplified game to be used as the fitness function, and then I realized that this would be no fun at all if I didn’t program a small graphical front end for the program.

While thinking about this, I dreaded trying to delve into Java’s swing to program what should be a very simple cartoonish interface for a non-interactive game. I thought for a second about finally taking the time to learn the curses library, then it hit me. If I’m to learn something new, I might just as well finally get that goal of learning python off the self!

So here I am, reading a bunch of python tutorials, and some pygame examples for the Gui. Luckly, I found a half-made DTD clone in pygame which is running, so I can probably use that when I finally get to the “getting things on screen” stage, but right now I’m still struggling to write a basic GA loop in the language. More specifically, how to use the fancy tuples to implement crossover functions. Gah, things are too different, but at least I’m off to a start already. Tomorrow and Monday are Japanese Holidays, so with some luck I get a large chuck of the project started by then and can write some more precise details… but for tonight – reading, reading reading.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.