<< Back to Programming Forum   Search

Posts 11 - 30 of 52   <<Prev   1  2  3  Next >>   
The Cowzow AI is now available: 3/4/2016 15:39:34


Fleecemaster 
Level 59
Report
The Cowzow AI is now available: 3/4/2016 17:02:57

talia_fr0st
Level 59
Report
How do I play against this bot?
The Cowzow AI is now available: 3/4/2016 19:15:39

Fizzer 
Level 64

Warzone Creator
Report
your port of the Wunderwaffe was broken.

Did you find something in the code that's broken? Feel free to fix it and make a pull request.

How do I play against this bot?

The same way as the other bots, just specify "Cowzow" in place of the bot's name.

If you're new to the project, read the blog post. Note that this project is aimed at developers, so it's expected that you know at least some basic C#
The Cowzow AI is now available: 3/5/2016 12:39:43


Relajate
Level 59
Report
when will u replace the standart bot with some decent 1 fizz?
The Cowzow AI is now available: 3/5/2016 12:52:21


Timinator • apex 
Level 67
Report
once one decent bot is done.
The Cowzow AI is now available: 3/5/2016 14:03:14


Tristan 
Level 58
Report
@TeHagoPedazos
If u tiped propery ppl mite undertand wot u r sayeng.
The Cowzow AI is now available: 3/5/2016 14:46:44


Strategos
Level 54
Report
Making an AI is similar to training a dog. If the owner of a dog is emotionally unstable or isn't intelligent as a trainer/owner, the dog will likely end up unstable and less intelligent. Likewise, if the programmer of an AI doesn't understand WL strategies and ideas very well, the AI probably will end up rather weak. Ideally, programmers would team up with active top players to make a better AI.
The Cowzow AI is now available: 3/5/2016 14:48:20


Fleecemaster 
Level 59
Report
Well, I would hope that would be the case...

If ever I get round to starting this I would likely match it up against good humans (once it was at a reasonable state) to get feedback for better strategy for it. I think in the end it benefits them in the long run too.
The Cowzow AI is now available: 3/5/2016 23:36:40


Norman 
Level 58
Report
I copy + pasted Fizzers github repository into my own: https://github.com/Norman1/WarLightAI
Here I'm doing the fixes to Wunderwaffe. So far nobody has showed interest beyond "general interest".


Did you find something in the code that's broken? Feel free to fix it and make a pull request.

I'm currently still fixing stuff. Just as a random example both Wunderwaffe and cowzow are supposed to have some heuristics to determine what is going on behind the fog. However you removed my FogRemover component so a completely blind Wunderwaffe is playing against a seeing cowzow. I played the bots against each other with the standard test settings, with the exception that I removed the fog. Their current results are a 12 -2 win rate of Wunderwaffe vs cowzow.
The Cowzow AI is now available: 3/6/2016 00:48:31


Volcanoob
Level 60
Report
This looks like bunch of fun :) im finishing my Bs'c in computer science in May after that ill dig in :)
The Cowzow AI is now available: 3/6/2016 01:36:27

Fizzer 
Level 64

Warzone Creator
Report
Here I'm doing the fixes to Wunderwaffe.

Cool! I'm glad you're working on it.

You're right I had to remove the FogRemover stuff. I also had to change the picking scheme a lot, since of course picking works completely differently.

Both of these changes had to be made when moving from TheAIGames framework to WarLight's. In TheAIGames, it told you where your opponent started, so it was reasonable for a bot to be able to guess and get a pretty good idea of what the map looked like behind the fog. Wunderwaffe took advantage of this, rightfully so, and kept a "fogless" map. When I went to port it to WarLight, I couldn't think of a way to maintain the same feature so I ended up removing it.

Both Cowzow and Wunderwaffe are being used in ways they weren't designed, so it's understandable that their behavior may not be ideal for the new world they're being thrown into.

It's also entirely possible I broke something when porting them over. I also fixed a few bugs that I found in Wunderwaffe's java version (let me know if you're interested in what I found).

Also, I was profiling other bots so I decided to profile Wunderwaffe to see if there was anything that could be improved. I found it was spending 40% of its time in the BotBonus.DistanceFrom function. That's a lot!

I looked over DistanceFrom but I didn't see any easy way to optimize it, so I looked at how it was being called:


var distanceFromUs = bonus.DistanceFrom(...);
if (distanceFromUs > 2)
...


DistanceFrom was spending a lot of time calculating the exact distance across the entire map, but all the caller really cared about is "is the distance greater than two?". So I was able to make an easy fix: DistanceFrom now takes a "max" integer, and if it exceeds the max, then it stops searching. Then the caller just passes a max of 3.

I just checked this in. I recommend applying it if you want to see a drastic speed increase.
The Cowzow AI is now available: 3/6/2016 03:49:36

Fizzer 
Level 64

Warzone Creator
Report
I played the bots against each other with the standard test settings, with the exception that I removed the fog. Their current results are a 12 -2 win rate of Wunderwaffe vs cowzow.

Wow, you're right, removing the fog changes the results a lot. Here are the simulations I just ran:

50 fog games: Wunderwaffe=7, Cowzow=43
50 no fog games: Wunderwaffe=44, Cowzow=6

Wunderwaffe is really crippled in fog games. Obviously, it was written under the assumption that FogRemover had removed the fog, so removing that changes everything.
The Cowzow AI is now available: 3/6/2016 08:43:06


GeniusJKlopp
Level 61
Report
Just to ask one thing:

Can AIs use cards in team games?
The Cowzow AI is now available: 3/6/2016 10:04:50


Lucarr10
Level 55
Report
Also, which language is the AI programmed in (I assume C#)?
The Cowzow AI is now available: 3/6/2016 10:05:36

wct
Level 56
Report
Theoretically, yes, but Prod only uses reinforce cards, and the ones for the AI competition didn't have any cards to use, so I doubt any of them know how to play them (reinforce wouldn't be difficult to implement, tho).
The Cowzow AI is now available: 3/6/2016 11:42:11


GeniusJKlopp
Level 61
Report
I ask for the old ones (bcs of one game)

Edited 3/6/2016 11:42:20
The Cowzow AI is now available: 3/6/2016 19:39:21


muddleszoom
Level 59
Report
can we have it so the ai takes it's go last (so it does not steal the cards off people and does not pick the same territory as a player
The Cowzow AI is now available: 3/7/2016 05:57:21


Word Walker 
Level 68
Report
I'd be interested to know how to use it. The only explanation I saw referred to the method used for other AI's, which I do not know.
The Cowzow AI is now available: 3/7/2016 12:38:22

SwAtteR
Level 58
Report
This current default warlight AI has a big bug !

He don’t any move in a game with no income (i mean a game with setting basic armies per turn zero)…. however he have several army but he don’t any move without any income at the start the game and after that …

Need someone enhance it
The Cowzow AI is now available: 3/7/2016 13:38:30

J_Dog33340 
Level 58
Report
so by any chance would it be easier to modify the one on warlight over the ones off of the AIGames
Posts 11 - 30 of 52   <<Prev   1  2  3  Next >>