R & D: Programming with Python

I understand how import it is to be able to write code, but I didn’t know how fun it can be. A friend at work started doing a weekly course on Python scripting, and I’ve been having a blast with it.

Our first assignment was to create a simple “choose your own adventure” text based game. I went a little above and beyond with it (nothing too fancy).

Python_01

Then, we decided it would be more beneficial to create something useful to learn the deeper ins and outs of scripting, so we started creating our own version of Monopoly.

I took it upon myself to start mapping out everything in the game, so that I could make more sense of how to program all those loops and if/else statements. Here’s a tiny portion of a much larger map:Python_03I find that I can more easily wrap my head around HOW to program it, if I first map it out with logical yes/no questions. It turns out that Monopoly has a TON of rules, and we soon realized that this is a much bigger task than we could tackle in one quarter, so we’re still working on it. It would’ve been much easier to start with something simple, like checkers, or even chess.

Still, after getting a lot of the mapping out of the way, I started trying to write the program myself (just text based, since I’m still very new to Python). I managed to build a turn-based program for two players, with just three properties. It’s still in the works, but I’m very proud of what I’ve achieved so far, mostly on my own.Python_04

The idea is that it will eventually fit into Maya as a playable game. For now, I’m just happy to be learning something new!

 

 

Leave a Reply