Archive for the ‘python’ Category

Roman Numerals

From reddit.com/r/programingchallenges: I googled this and I haven’t found a similar challenge, so I’d like to pose this question to you all! Let’s say I give you a range from 1 to 2000. Within this range, find the number that yields the most characters. I asked a friend of mine and he worked out that [...]

Posted by Matthew on August 8th, 2011

Filed under programming, python | No Comments »

Sources of Holy Power Generation

Note: The information present in this post is a couple of months out of date. I’ve not had the time to re-update WoL data and create new graphs, but thought it might be interesting share the data/code anyway When choosing a Holy Paladin spec for 10 mans I was never completely sure about benefits of [...]

Posted by Matthew on April 5th, 2011

Filed under games, programming, python | No Comments »

Text Twist Bot

Yesterday I watched someone play a bit of the browser based game Text Twist. Upon trying myself I found that I was awful, so I did what any programmer would do; cheated. Results of a few hours hacking: Features: Scan for game area and crash and burn if it’s not detected (Crudely) detect what letters [...]

Posted by Matthew on March 16th, 2011

Filed under games, programming, python | 2 Comments »

Intial Divine Guardian Tests

I been wanting to look in the effectiveness of the 20% raid wall granted by Divine Guardian (4th tier talent in a Paladin’s protection tree). To do this I wrote a very simple Python program to read the combat log, detect with DG goes up and then record all the damage that was taken while [...]

Posted by Matthew on February 3rd, 2010

Filed under games, programming, python | No Comments »

WoW Combat Log Splitter

Something quick I whipped up last night, after noticing that after my log file was > 4GB the WorldOfLogs parser will no longer do real time logging. Edit: Turns out that the WoW client itself stopped logging, even though the log file was a little over expected limit (4,334,806,196 bytes) Note: The code is just [...]

Posted by Matthew on September 4th, 2009

Filed under games, programming, python | 2 Comments »

brainfucked.py again. Or: How not to optimise

After slaving over a warm laptop (while getting lost on the train), I re-wrote my bf interpreter to use a kind of psudo-bytecode to optimise jumps, and big sets of increments and movement operations. Below is the new code. #!/usr/bin/python """ brainfucked.py a simple (and hopefully easy to understand) Brainfuck interpreter written in Python. Official [...]

Posted by Matthew on June 26th, 2007

Filed under programming, python | No Comments »