<< Back to Warzone Classic Forum   Search

Posts 31 - 50 of 55   <<Prev   1  2  3  Next >>   
Warlighter's Bots for AI challenge: 3/23/2014 19:46:07


Norman 
Level 58
Report
Who's Norman? I recognise the name but I can't place it...

Good question. I'm afraid you won't like the answer though:
--> http://www.youtube.com/watch?v=XAPLx4KiK8A
--> http://warlight.net/MultiPlayer?GameID=4133020
--> http://theaigames.com/competitions/warlight-ai-challenge/games/532ebbf64b5ab23d7e2ebb87
Warlighter's Bots for AI challenge: 3/23/2014 19:56:03

Alexander
Level 63
Report
Thx PS. I may write one in the summer but i search a partner to check the code and discuss...
Warlighter's Bots for AI challenge: 3/23/2014 19:57:22


Green 
Level 56
Report
Yeugh, I didn't play very well there did I? Have you played in a live stream? I think that's where I've seen you from (aside from the game).

Anyway, I too am going to have a go at this - you won't be winning for much longer :D

Edit:typo

Edited 3/23/2014 19:57:37
Warlighter's Bots for AI challenge: 3/23/2014 20:29:50

jim
Level 2
Report
For coding in any language, sublime is a really good text editor and it's available for all platforms. It will help you with reading the code easier, it will also do suggestions for method/function names and much more.

Here's the link: http://www.sublimetext.com/

Edited 3/23/2014 20:30:10
Warlighter's Bots for AI challenge: 3/23/2014 21:03:07


Green 
Level 56
Report
Is it paid for? Does it support all languages you may need?
I've been using notepad++ with a bunch up of plugins until now - Have you used it - is Sublimetext a lot better?
So many questions...
Warlighter's Bots for AI challenge: 3/24/2014 00:06:32


Mycroft
Level 55
Report
Here is my bot. http://theaigames.com/players/alleirbag
It is currently climbing up the ladder, at position 92 as of right now.

Edit: 85th. It might eventually catch up to crappybot :)

Edited 3/24/2014 00:07:52
Warlighter's Bots for AI challenge: 3/24/2014 22:01:36


ps 
Level 61
Report
Green: sublime is free, they expect you to pay a license for continued use though. some people say it's better then notepad++. it runs on more platforms atleast (makes linux and mac kids happy).

Edited 3/24/2014 22:03:30
Warlighter's Bots for AI challenge: 3/25/2014 01:44:03


ps 
Level 61
Report
finally done with a first half-decent version of the bot, uploaded, let's see how high it climbs. Hope i didn't leave any nasty bug in it. :S
Warlighter's Bots for AI challenge: 3/25/2014 02:58:06


ps 
Level 61
Report
which i did, and now patched. Well, last place on the WarLight ranking, only way up from here :D
Warlighter's Bots for AI challenge: 3/26/2014 01:35:51


125ch209 
Level 58
Report
Does someone knows if it is possible to make the AttackTransferMoves at the same time than the
PlaceArmiesMoves with the JAVA botstarter? like i would like to write all the coding, filling placeArmiesMoves and attackTransferMoves in the same method, and then the predefined "getPlaceArmiesMoves" and "getAttackTransferMoves" methods would only have "return placeArmiesMoves" and "return attackTransferMoves" in them. I can't figure out how to do that.Any suggestion?
Warlighter's Bots for AI challenge: 3/26/2014 01:52:40


Odin 
Level 60
Report
The game engine uses the following method to play a round:


public void playRound()
{
getMoves(player1.getBot().getPlaceArmiesMoves(2000), player1);
getMoves(player2.getBot().getPlaceArmiesMoves(2000), player2);

executePlaceArmies();

getMoves(player1.getBot().getAttackTransferMoves(2000), player1);
getMoves(player2.getBot().getAttackTransferMoves(2000), player2);

executeAttackTransfer();

...


The three methods getPreferredStartingRegions, getPlaceArmiesMoves, getAttackTransferMoves are all defined in the bot interface. I think you need to have all of those methods separate. You can, however, make your calculations during the getPlaceArmiesMoves method call, place the results somewhere (in the state, for instance), and just load them from the state reference during getAttackTransferMoves method call.
Warlighter's Bots for AI challenge: 3/26/2014 11:59:19


125ch209 
Level 58
Report
thanks, thats what i want to do, but how do i place the results in the state?
Warlighter's Bots for AI challenge: 3/26/2014 12:24:42

Fizzer 
Level 64

Warzone Creator
Report
how do i place the results in the state?

He means make a variable and assign to it during getPlaceArmiesMoves(). Then all getAttackTransferMoves() does is return that variable.
Warlighter's Bots for AI challenge: 3/26/2014 12:37:10


125ch209 
Level 58
Report
so i put a variable attackTransferMoves in the State file, then in the getPlaceArmiesMoves method in the starter i can do this:

in the BotState:
public ArrayList<AttackTransferMove> attackTransferMoves = new ArrayList<AttackTransferMove>() ;

in the BotStarter getPlaceArmiesMoves method:

(state.attackTransferMoves).add(new AttackTransferMove(myName, fromRegion, toRegion, armies));

would that work?

Edited 3/26/2014 12:37:58
Warlighter's Bots for AI challenge: 3/26/2014 13:09:33


Odin 
Level 60
Report
Yes, that would work. Of course,
(state.attackTransferMoves).add(new AttackTransferMove(myName, fromRegion, toRegion, armies));

will only add one attack/transfer order to the list.

Also, you could declare attackTransferMoves private, with public getters and setters.

The BotStarter's getAttackTransferMoves method, then, only contains one line:
"return state.getAttackTransferMoves();"

Edited 3/26/2014 13:14:54
Warlighter's Bots for AI challenge: 3/26/2014 13:19:12


125ch209 
Level 58
Report
yes, i'll declare it private and put a public setter & getter. Thank you very much!
Warlighter's Bots for AI challenge: 3/26/2014 13:44:18


ps 
Level 61
Report
125: what i been doing in c# is to create a new list called schedule attacks fill it up during the deployment phase with things that make sense happen, and then on the attack phase go through it and execute it.
Warlighter's Bots for AI challenge: 3/26/2014 13:57:00


125ch209 
Level 58
Report
ps: yes that is what i want to do, but i didn't know how to access a list declared in the PlaceArmiesMoves method from the AttackTransferMoves method...turns out you can't, that's why i need to put this schedule attacks list in the BotState. I'll give it a try tonight, i hope it'll work :)
Warlighter's Bots for AI challenge: 3/26/2014 13:58:30


ps 
Level 61
Report
125: ok. can you update my link on the main page? i changed the name of my bot:
http://theaigames.com/competitions/warlight-ai-challenge/game-log/pswarlighter/
Warlighter's Bots for AI challenge: 3/26/2014 22:37:29


zach 
Level 56
Report
I don't know how you do it Norman.
Posts 31 - 50 of 55   <<Prev   1  2  3  Next >>