<< Back to Warzone Classic Forum   Search

Posts 161 - 180 of 565   <<Prev   1  2  3  ...  5  ...  8  9  10  ...  19  ...  28  29  Next >>   
WarLight AI Challenge: 4/19/2014 22:58:43


125ch209 
Level 58
Report
yeah i was supposed to attack with 3 armies....the bug has to be on their part right?

ps: our last game shows you made some nice updates btw, but i only had to change a few things to counter it^^

Edited 4/19/2014 23:00:15
WarLight AI Challenge: 4/19/2014 23:30:12


Norman 
Level 58
Report
Yes, pretty sure it's their mistake. There is a thread in their forum about this bug. Since my bot expands with 3v2 and goes for small attacks it probably hurts me most.

I didn't add new code to my bot since the fighting update a week ago, but refactored some old code and threw out some bad code. (OK, maybe adjusted the weighting factors a bit).

I guess you don't mean that game which was actually our last ;)
http://theaigames.com/competitions/warlight-ai-challenge/games/5352fcc74b5ab2272eb958d2
WarLight AI Challenge: 4/19/2014 23:33:04


125ch209 
Level 58
Report
yes i meant this game, i updated my bot as soon as i saw this :)
i can't let you reach 2900 ;)

Edited 4/19/2014 23:33:55
WarLight AI Challenge: 4/20/2014 00:13:29


ps 
Level 61
Report
125: initiate the array object when the bot starts, then add a new element on the array whenever the map update is called. you can create a copy of the fullmap for example and add that to the array, or just a list of the visible regions if that's enough for you (and save some memory, even though i haven't seen any rules limiting memory use on the site). it's important to create a copy and not just do = to something, or you'll just be storing the pointer reference to the object and end up with an array filled with pointers to the same map which is being updated every turn. hope this helps.
WarLight AI Challenge: 4/20/2014 00:16:16


ps 
Level 61
Report
hope to find some time next week to do a few more updates, have plenty of ideas on how to improve mine on different areas, not sure if it'll be enough to beat norman but would be cool to find out. :)
WarLight AI Challenge: 4/20/2014 16:04:07


125ch209 
Level 58
Report
ok thanks ps!
WarLight AI Challenge: 4/21/2014 01:14:08

{rp} pedrito 
Level 48
Report
Thanks for the insights guys... rubs hands :) just kidding.

I've been working on the strategic 'brain' of my bot lately, hence no updates for a while and terrible score.

@125ch209 For your question regarding 'state between rounds' : I've just recently implemented a class called CMoveRegister (with a subclass called CMove), which keeps tracks of everything that has happened in the game so far. At the core is a 2D array, an array of rounds and inside each round an array of CMove-objects. Each turn, separately from all the rest, the bot feeds the move register with the strings containing my moves and the enemy moves, the registers parses the string and converts them to CMove-objects and stored them. Then to access the data I have functions like getEnemyMoves(round), getMyDeploy(round), getTotalMoves(round), getDeployLocation(round), etc... you get the idea. Personally I think that converting the strings to objects makes the handling much easier.

Regarding general strategy I think my bot has quite a different approach that Norman's or 125cd209's. First of all, general strategy and weighted regions are completely missing for now, though as I said above I'm working on this right now.

Here's how it works:
I have one function for every "type" of action that a WL player would do, currently: completeBonus, exploreBonus, defendBonus, breakBonus, preventBonus and destroyArmy, each with their respective base-priorities. Inside the function it scans for situations on the board where these could be applied, adjusts the priority according to circumstances, and then creates a "proposed move". Later, the bot sorts all the proposed moves according to priority and starts dealing out armies until it runs out of available armies.
WarLight AI Challenge: 4/21/2014 02:38:25


125ch209 
Level 58
Report
i think your method to keep track of the opponent moves is really complicated. I found another way much simpler. I basically added some PlaceArmiesMove , AttackTransferMove, and Map ArrayList with getters in the BotState ,and i fill them in the corresponding method (using getMapCopy() and other methods to copy the moves) you don't need to parse the objects into strings.
WarLight AI Challenge: 4/21/2014 04:07:29

{rp} pedrito 
Level 48
Report
Well, I don't really know what you mean by that. To turn the strings into useful data, I need to parse them at some point. Can't really ask a string how much the total deployment was during turn X. But then again, I don't know at all how you built your parser...
WarLight AI Challenge: 4/21/2014 04:18:31


125ch209 
Level 58
Report
ah yes forget about it, didn't see you used PHP, in the java botstarter all the parsing is already there
WarLight AI Challenge: 4/22/2014 17:18:31

{rp} pedrito 
Level 48
Report
Bump...

Just for small talk: what kind of coding experience do you guys have?
I read a few pages earlier that one of the guys learned Java just to take part in the competition. That I found quite impressive.

Myself, I have been learning C++ for a year on my own, now I've been learning PHP for a few months, on my own as well. I've made a game in C++, though nothing really to show off, and a few smaller projects. In real life I've been working in hotels for 10 years, but I'm quite fed up and I'd like to eventually be able to make a living with programming, so that's my drive.

How about you?
WarLight AI Challenge: 4/22/2014 17:25:15


Muli 
Level 64
Report
I started a computer science studies last summer and started programming java there :)
WarLight AI Challenge: 4/22/2014 18:07:21


125ch209 
Level 58
Report
I just finished my mechanical engineering school, i am not working yet so i had time to learn JAVA and i've been wanting to learn programming for some time now, so this competition was a good opportunity to do that. During my education i programmed a maze generator in VB.net as a school project (first time i programmed), and i made one project on matlab to do some fluid mechanics simulations .Just before the challenge i made a little program for warlight using matlab : http://warlight.net/Forum/Thread?ThreadID=33590
That's all the programming experience i had, then i read about Java for 2-3 days to do the warlight AI challenge. I've learned a lot this past few weeks, i think if i had to redo the same bot, it would take 10x less that it took me for Gadzbot

Edited 4/22/2014 18:16:51
WarLight AI Challenge: 4/22/2014 23:17:58

{rp} pedrito 
Level 48
Report
I've learned a lot this past few weeks, i think if i had to redo the same bot, it would take 10x less that it took me for Gadzbot


I hear you...
WarLight AI Challenge: 4/23/2014 14:29:35


Norman 
Level 58
Report


2900 rating! Didn't update my bot (in a meaningful way) last 1-2 weeks though. I scaned the wikipedia page about ELO and I think the reason these high ratings are possible now is because the difference between the high level and the low level bots increased so all those low level starterbots are pumping my rating up. So if the best 20 bots keep getting better they can push me above 2000 rating without me working on my bot. Thanks 125ch209, without your bot I wouldn't have managed this high rating.

At present I'm a bit bored about the map and about the other bots. What I don't like about lot's of the other bots is that I'm pretty sure they only work well on exactly this map since the bot programmers hard coded many different situations what works well on this limited map. I can tell that since they work so extremely fine in standard situations and so extremely bad in not so common situations when things get messy. I'm not saying that my bot can play well on every map. The way my bot expands and fights is optimized for 'small fighting maps'. Apart from picking the starting regions I didn't add any hard coded stuff though. A real interesting warlight AI challenge should involve many different maps and random wastelands. I do like pedrito's bot though for his ability to read the board ;)
WarLight AI Challenge: 4/23/2014 18:11:51


ps 
Level 61
Report
i was trying to avoid specific map orders, but the whole stuck in australia and must rush to break south america or die re-occuring scenario made me add that exception. and now i just don't care much anymore and ended up adding a couple more explicit exceptions. but yeah, i would much rather keep coding on a generic approach that would be tested on multiple undetected maps. maybe a follow up challenge? :)

really wish i had more free time for this, have so many ideas for how to improve it but can only manage a couple hours every few days to look at it. :/ have been fluctuating between 15th and 7th for the past few days, which should be enough to be qualified for the finals.

hope to be able to convince my boss to let me work on this for a few days straight then.
WarLight AI Challenge: 4/24/2014 01:23:43


Norman 
Level 58
Report
Let's see how high the new version of Trogabot can rise. Currently he is number 4 but looking at version 362 I have a feeling that my number 1 days are numbered ;)

Edited 4/24/2014 01:24:21
WarLight AI Challenge: 4/24/2014 03:09:09

{rp} pedrito 
Level 48
Report
The question I pose myself is:

Do Warlighters dominate the competition because we have more experience and know every possible situation by heart, or is it because we spend more time watching games and coding than the others?

I for one hardly play WL anymore since the competition, it has replaced WL for now and takes up those idle hours where I used to play.

A real interesting warlight AI challenge should involve many different maps and random wastelands.


Yes that would be awesome. Maybe the guys from theaigames are up for hosting another one at some point in the future (not right away though, I need a break :D ), else we can probably set something up ourselves. The engine is there.

By the way, the total number of map-specific routines in my bot, including starting picks: 0
WarLight AI Challenge: 4/24/2014 13:06:14


ps 
Level 61
Report
i guess i can override the get out of australia and into brazil thing with some proper code to predict where the opponent could be and move to break that ignoring bad expansion targets along the way, so yeah, there is no real reason for my bot to be map specific atm beyond lack of time to refactor this properly.
WarLight AI Challenge: 4/24/2014 14:38:02


125ch209 
Level 58
Report
i have a lot of map-specific moves in my code, but then again when i started coding this bot i knew 3 things about programming: for / if and while :D I think now i am be able to make a much smarter bot, but i am a little bored about this competition, and i won't be able to tweak my bot for 2 weeks since i'm going on vacation...i hope it holds up and that i will have a few days left to improve it when i come back, now that i know how to access the "history", i have a ton of ideas to improve it
Posts 161 - 180 of 565   <<Prev   1  2  3  ...  5  ...  8  9  10  ...  19  ...  28  29  Next >>