- Created Saturday, December 13th 2014 @ 08:33:33
any news on when a python starter bot would be implemented for the new comp?
DeveloperCreated Saturday, December 13th 2014 @ 11:08:38
I'll see what I can do next week :)
- Created Saturday, December 13th 2014 @ 13:46:24
thanks jim :), any possible way we can donate to the cause ? :)
- Created Sunday, December 14th 2014 @ 02:45:07
I've made a quick Python starter bot based on the one built for the v1 challenge https://github.com/someidiot/warlight2
I'm no python expert but there weren't too many things I had to change to get it going. I haven't been able to run a full game yet though as the compilation queue seems broken :)
Jim - feel free to use this as a starter bot or make it better first, whatever.
DeveloperCreated Monday, December 15th 2014 @ 10:22:34
@crashkid Not yet, but probably in the future we will have a donations page, thank you for your support :)
@someidiot Thanks, I'll check it out
- Created Tuesday, December 16th 2014 @ 06:38:53
Hey some idiot i tried to submit the code u linked to the challenge but it returned a bunch of bugs, not sure if i did something wrong? the website is having issues? or the code is faulty :P. Any insight greatly appreciated :)
- Created Tuesday, December 16th 2014 @ 08:50:23
I submitted a few changes after the initial commit to fix a dependency, the current version compiles fine so make sure you've got that one.
- Created Friday, December 19th 2014 @ 11:56:44
Hey someidiot, ive been tinkering with ur python bot and was wondering what exactly information is given to us about the starting regions the server gives us?
your code when i got it simply returned a random number between 0 and the size of 'options', im trying to make it so that it picks a certain region, based upon what super region it is associated to, my code is the following:
smallestsuper = 100 worth = 100 startingsuper_id = -1
# Select the smallest super region for supers in self.map.super_regions: # Minimum worth of 1 if(len(supers.regions) < smallest_super and supers.worth > 0): starting_super_id = int(supers.id) worth = supers.worth smallest_super = len(supers.regions) if(starting_super_id >= 0): # We have the super region id that we want, now to find the region id, that corrisponds to that super region for regions in options: if(regions.super_region == starting_super_id): i = options.index(regions) else: i = Random.randrange(0,len(options)-1) else: i = Random.randrange(0,len(options)-1)
im getting errors as im not sure what information options actually holds? any insight? sorry for the completly newbie questions :(
- Created Friday, December 19th 2014 @ 12:12:17
options is a list of the starting regions you need to pick from. The pickstartingregion() function is called like:
which means it gets index 2 to the end of the parts list which was the command sent to your bot. If in doubt print it!
You cant do "for region in options" as options is not a list of regions, its a list of region ids.
- Created Friday, December 19th 2014 @ 12:15:47
Thanks man, i actually was following this exact line of thinking, was problem solving for 10 minutes and basically found out exactly what u said, thanks a ton tho, u told me that im definetly on the right track, and my code seems to be working :), thanks a ton!