Thursday, 29 March 2012

Lobster pots game- saving highscores

Sup :)

It was the end of term and in maths we celebrated by playing a game called "Lobster pots". It was actually pretty fun (I screwed up and failed) but at the end of class I thought it would be a good idea to spend a portion of my holiday sitting in front of a computer programming.

It was easy, there is nothing complicated in here - however, it was the first program I ever wrote that wrote to a text file. I wrote it a few months ago, and I'm not being big headed or anything but I'm pretty proud of myself. I managed to make it concise and efficient (the whole thing is in 86 lines, a few of those are blank), but it has it's flaws. Check it out - any feedback is appreciated :)

The source can be found here:
http://pastebin.com/hCJMpTXj

An explanation of the game can be found here:
http://www.bbc.co.uk/dna/onthefuture/A912494

Thanks for reading :)

No comments:

Post a Comment