Gaming & Hacking
This time I won’t rant nor get my geek on. I’m just showing off some stuff that I built a few years ago. It always amazes me how different coding production-strength code is compared to free-style hacking. These are the results of some free time, the code is not good. I mean, I wouldn’t use it in any production system π
FreeCiv
These were two tools to help me play FreeCiv. The first is used to recreate a part of the map in order to find out how many resources a city could draw on. All factors are included, from irrigation to government. The second one is to help out with the research tech tree. Given a goal it’s not always easy to figure out what to research next. These two were made in Java and SDL. In other words, Java but with graphics card accelerated 2D π
Bejeweled Blitz!
I was briefly addicted to playing Bejeweled Blitz on facebook. I could not resist to create a bot to cheat at this game. I did this in two feverish evenings using just C++ and the windows API. One thing I’m proud of is creating a graphic representation of what the bot is doing, on the left. It helped a lot while debugging, I could actually see the bugs :). I never played the game again afterwards.
See the code:
Happy coding!
- Avoiding stampede
- ReaderT 101