<< Back to General Forum   Search

Posts 1 - 7 of 7   
Warlight AI Challenge - Visualizer?: 4/25/2011 00:41:00


les 
Level 6
Report
Is anybody else working on the AI challenge? I've started and have some fun ideas, but I need help.

Does anybody have a visualizer? I'm starting to look at Graphvis, but have never used it before. Has anyone found a c# lib that could draw the maps so I can see what the bot is doing? I've heard the XDK might have something, but haven't looked into it.

Until now, I just tweaked the WarlightAIChallenge to use a simplified map and starting positions (below). From there you can just draw the current map state, but this doesn't scale.

Any ideas are welcome. Thanks.
Les

*Program.cs*
static CustomScenario CreateInitialDistribution(MapDetails map)
{
var scenario = CustomScenario.Create(map);
scenario.SetAll(null, 2);
scenario.Territories[(TerritoryIDType)1].Slot = (SlotType)0;
scenario.Territories[(TerritoryIDType)8].Slot = (SlotType)1;
return scenario;
}

public static void Main(string[] args)
{
...
var mapDefinition = File.ReadAllText("LesTestMap.txt");
...
}

*LesTestMap.txt*
Map http://warlight.net/SinglePlayer.aspx?PreviewMap=30000
TerritoryDefinition 1 LeftStart 2 3
TerritoryDefinition 2 LeftTop 1 3 4
TerritoryDefinition 3 LeftBottom 1 2 5
TerritoryDefinition 4 CenterTop 2 5 6
TerritoryDefinition 5 CenterBottom 3 4 7
TerritoryDefinition 6 RightTop 4 7 8
TerritoryDefinition 7 RightBottom 5 6 8
TerritoryDefinition 8 RightStart 6 7
BonusDefinition 3 Left 1 2 3
BonusDefinition 2 Center 4 5
BonusDefinition 3 Right 6 7 8
EndMap
Warlight AI Challenge - Visualizer?: 4/25/2011 01:59:35

Fizzer 
Level 58

Warzone Creator
Report
I agree that Graphviz (or another app along the same lines) is the right way to go. I haven't worked with any either, but I'm willing to help if I can.
Warlight AI Challenge - Visualizer?: 4/25/2011 02:55:24


les 
Level 6
Report
http://graphsharp.codeplex.com/ might be the way to go. Not sure if it can handle changes over time/turns.
Warlight AI Challenge - Visualizer?: 4/25/2011 05:37:02

Fizzer 
Level 58

Warzone Creator
Report
I don't think it needs to be a C# one. Of course if you want to proceed with Graph# I won't stop you, but I'd prefer Graphviz since it's multi-platform. Graph# depends on WPF which makes it Windows-only.

Send me an e-mail at fizzer@warlight.net and we can discuss it more.
Warlight AI Challenge - Visualizer?: 4/25/2011 10:45:36


Matma Rex 
Level 12
Report
I'm going to take part in the challenge (actually - can we assume it's going to happen?), for now I wrote Ruby starter and my own bot that currently manages to beat the default every time (I posted the starter in the thread on the Challenge forums).

If I could get the original SVG map, I could whip out a simple, ugly visualizer (ie. showing just the state every turn, not orders) in JavaScript (paste WarLightAIChallenge.exe output, receive SVG or canvas animation). Still, a nicer one would be necessary.
Warlight AI Challenge - Visualizer?: 4/25/2011 10:47:17


Matma Rex 
Level 12
Report
If somebody just came here and has no idea what are we talking about:

* http://ai-contest.com/forum/viewtopic.php?f=21&t=1361 - the Challenge forums topic
* http://blog.warlight.net/index.php/2011/04/warlight-as-a-candidate-to-the-google-ai-challenge/ - Fizzer's blog post
Warlight AI Challenge - Visualizer?: 5/5/2011 11:41:15

sir_macelon
Level 5
Report
But is there anyone going for the current challenge (Ants)?

It is planned to take place in winter and it is not yet so sure if Warlight will make it for the next one. Anyway you will have to wait about a year to see it happen, so why to bother now?
Posts 1 - 7 of 7