Author
Topic: A Program to Make SG Bots (Read 1831 times)

I suppose this would be the right place to post this. It was an idea I had back when I first started messing around with the DNA, but I got sidetracked by other things. A few days ago I finally sat down and wrote it, using python, and managed to get it working. It takes the path of the bot you want to make an SG Bot out of, then allows you to specify a different file to save the result into (optional). As far as my testing has concluded the results work perfectly, even if the resulting code is ugly, though errors may still occur. I'd appreciate any feedback on it. Oh, it requires the Python interpreter be installed (available free from python.org), and then the source code saved in a .py file should run like a .exe (under windows, on other operating systems you may need to add a line of code to the top, unfortunately, I can never remember what it is...). I'll simply post the code here rather than uploading the file, just paste it into a text editor and save it as a .py, it should run like an executable after that. Try it out, just be sure to either use a copy of the bot or have it save to a different file, I think it's bug-free, but I'd hate to be responsible for a bot getting messed up.

print """ Copyright (C) 2008 Praesidium This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>."""