The classic game of worm is known for it's mind numbing effects, so why not just write a bot to play it?This project is an attempt to aid the development of "worm bots" using a plugin interface.
Be the first to post a text review of WormBots. Rate and review a project by clicking thumbs up or thumbs down in the right column.
Once upon a time, in an age long past, i was idling away a sunday afternoon playing worm, and i got to thinking how i write a program to play the game, so that i could go do something more productive without the fear of those numbers getting the better of the poor helpless worm. My first instinct was to write a bot which piped i/o to and from the existing game of worm (in the bsd games collection), this was ofcourse a little insane so it never got off the ground. The second plan was much better, this involved a system where the worm program (writen from scratch) would load a plugin "bot" which could either be a shared object or a wrapper for another language. At about that point in time i registered the sourceforge project and coded the whole thing. As i remember it, there was some bug which kept it crashing for no reason i can remember. Anyway as sometimes happens it was put aside for awhile and that while became a long while. Around the end of that while i started learning scheme and using guile, and with the inspiration of gnurobots i began writing wormbots from scratch using guile. The code was much cleaner, since i had already writen it a few times, and i finished a working version a week later. The only problem was that when guile found a problem in the scheme code, it dumped an error and exited, leaving the terminal messed up. This was easily fixed with atexit(3), however the error message was lost, and the only way i could find to save it was to change stderr to a pipe, and using atexit dump the error message read from the pipe in the atexit function. It worked, but it was such a complete hack i didn't want to release it. I probably should chop out the guile code and release that, it was much prettier than bsd worm. Anyway the code sat around doing nothing while i was off doing other things. I'm not even sure how long ago i wrote it now, but in any case i have a far greater vision for wormbots now. I am rewriting it in java, oh and i'm calling it WormBots4 (after considering "wormbo" and deciding against). And they lived happily ever after...
Be the first person to add a text review.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?