- Created Friday, February 7th 2014 @ 10:22:30
We have made the source code for the Conquest engine available on TheAIGames Github!
You can use this code to test your bot locally, or just to check out how it's built. Our future competitions will also be uploaded to this Github as soon as they are stable.
- Created Sunday, February 9th 2014 @ 16:40:33
w00t! Great job! Time to get a local competition of my own bots running! :-)
- Updated Monday, February 10th 2014 @ 08:17:24
And up & running... kicked out the MongoDB stuff :-) Now I need to implement a rating mechanism... I know we discussed a lot about that during the poker game... are those (forum) postings still available ? :-)
Aah, remembered it... ELO rating: http://en.wikipedia.org/wiki/Eloratingsystem
- Created Monday, February 10th 2014 @ 09:28:30
Yes, we use the Elo system. Here is the piece of Python code we use to calculate the new ratings after each match:
r1 = self.db.getBotRating(botId1) r2 = self.db.getBotRating(botId2) s1 = 0.5 if (game['winner'] == botId1): s1 = 1.0 elif (game['winner'] == botId2): s1 = 0.0 e1 = 1.0 / (1.0 + pow(10.0,(r2-r1)/400.0)) diff = round(32.0 * (s1 - e1)) new1 = int(r1 + diff) new2 = int(r2 - diff) if new1 != r1: self.db.setBotRating(botId1, new1) if new2 != r2: self.db.setBotRating(botId2, new2)
- Created Monday, February 10th 2014 @ 09:57:51
Planning on using python for my 'own' competition, so the above is very helpful!
- Updated Wednesday, March 19th 2014 @ 00:24:52
Almost working on my machine. This is what I have done :
- install mongoDB and download mongoDb JDBC at https://github.com/mongodb/mongo-java-driver/downloads
- change hard coded paths in sources
- write an ant file to include mongo and compile all src files to a jar file
- call jar file with paths to my local ai
I still have some questions : What is "/opt/aigames/scripts/run_bot.sh" script defined in main/RunGame.java l92 ? What are output files ? How can I visualize the game just played ?
- Created Wednesday, March 19th 2014 @ 09:06:14
Could we have a tuto on how test bots with this engine please?
- Created Wednesday, March 19th 2014 @ 09:44:53
Well, the code is there, which I think is a great service... You can use it to help your bot development. I don't think it's the task of theaigames to give concreet instructions on how to set everything up...
This is my runbot.sh
#!/bin/sh cd $2 if [ -f ./main.php ]; then php main.php else if [ -f bot/DominatorBot.java ]; then # javac bot/DominatorBot.java java bot/DominatorBot < /dev/stdin > /dev/stdout else # javac bot/StarterBot.java java bot/StarterBot < /dev/stdin > /dev/stdout fi fi
- Updated Wednesday, March 19th 2014 @ 11:40:44
ok, thx. i don't understand a thing of what you've writen tho :D. I'm just a warlight player and a complete noob at coding, so i thought i'd try to learn a few things about coding in order to make a bot... harder than i thought :) I guess i'll figure it out by myself
- Created Wednesday, March 19th 2014 @ 12:11:33
You don't need to run the engine to make a bot. Just grab a starterbot, read the code, upload it to site, then improve it and repeat.
Running the engine is just for hardcore people that want to do things like run different versions of their bot against each other or something. You should learn to do a normal bot before even worrying about the engine.
- Created Wednesday, March 19th 2014 @ 13:38:09
yeah right now i'm trying to decifer the java starterbot...not easy but i'm getting there. i guess i'll let the engine for the pros :D thx for the advices
osobaCreated Monday, March 24th 2014 @ 14:45:22
Would it be possible to also post the code for the game visualizer on Github (the map that displays the match with all the controls)?
When developing and testing a bot locally it is sometimes needed to do many tests (hundreds) before the bot can be ready for public appearance and a visualizer would be very helpful for deciphering whats going on.
- Updated Monday, March 31st 2014 @ 22:24:48
can you add some instructions on how to get it up and running on different OS'es? i'm not a noob at coding but i'd much rather not waste time figuring out this kind of stuff. it's not very hard to type a couple paragraphs telling people what to install and where they should be looking at to get things running. it can be a PITA to figure it out on your own though. :S
- Created Monday, March 31st 2014 @ 22:43:19
found a little more info here http://theaigames.com/discussions/warlight-ai-challenge/531d912a5d203c346d8b45a4/compiling-java-source/1/show
why the heck isn't it on the readme.md? :(
- Created Tuesday, April 1st 2014 @ 09:52:44
@osoba We are not going to make the game visualizer public, but it would be pretty difficult to get that running anyway, because you'd need to set up a part of our database structure as well. But since the last update you can upload a bot and test it against our testbot (we're planning on adding more than 1 testbot) and then manually putting it in the ranked competition.
@psenough I'll add the instructions on setting up the engine to the readme file.