Play
Multi-Player
Coins
Community
Settings
Help
Community   Maps   Forum   Mail   Ladders   Clans   Recent Games
Sign In | Sign Up
<< Back to Programming Forum   

Posts 1 - 30 of 52   1  2  Next >>   
The Cowzow AI is now available: 3/4/2016 02:41:19

Fizzer 
Level 57

WarLight Creator
Report
I just upload the source code to the Cowzow bot, written by Dan Zou for theaigames.com, to the github repo. (https://github.com/FizzerWL/WarLight.AI)

This brings the total number of bots to three: Wunderwaffe, Prod, and Cowzow.



Cowzow doesn't know how to play cards yet, but I matched it against Wunderwaffe On Strategic 1v1 settings without cards and it won 483 games to Wunderwaffe's 137. It's also much faster than Wunderwaffe (although I didn't time it, it feels at least 5x faster) and significantly less code.

That being said, when I look at its play I still see many poor choices it makes, so there's still a lot of room for improvement.

Feel free to try it out and see what you think. Does anyone feel like debugging through it to understand how it works?
The Cowzow AI is now available: 3/4/2016 02:54:50


TBest 
Level 59
Report
I will definitely check this out right away.... during spring break next week when I have time!
The Cowzow AI is now available: 3/4/2016 02:59:17


Genghis 
Level 52
Report
Cool.
The Cowzow AI is now available: 3/4/2016 04:12:06


Conquerre II
Level 52
Report
^
The Cowzow AI is now available: 3/4/2016 04:59:54


TeamGuns 
Level 58
Report
Hey, I'm not a lot into the new AI thing and stuff. But I'd like to test it, so can anyone explain me how can I set a game against the new AI?
The Cowzow AI is now available: 3/4/2016 06:39:33


Norman 
Level 57
Report
Cowzow doesn't know how to play cards yet, but I matched it against Wunderwaffe On Strategic 1v1 settings without cards and it won 483 games to Wunderwaffe's 137

Hey, your port of the Wunderwaffe was broken. Before a comparison stuff needs to get fixed first.
The Cowzow AI is now available: 3/4/2016 08:24:03


Fleecemaster 
Level 59
Report
TeamGuns, here: https://www.warlight.net/blog/index.php/2016/02/the-warlight-ai-goes-open-source/

Also, did you say we might be getting GreenTea too?

Edited 3/4/2016 08:24:53
The Cowzow AI is now available: 3/4/2016 12:16:52


ps 
Level 59
Report
cool
The Cowzow AI is now available: 3/4/2016 12:53:17


Peixoto
Level 63
Report
Where can we play against this new AI?
The Cowzow AI is now available: 3/4/2016 13:45:02


ps 
Level 59
Report
Ragnarok: read the AI open source blog post (the video mostly), it tells you how to set it up.
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


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

Fizzer 
Level 57

WarLight 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 55
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 
Level 62
Report
once one decent bot is done.
The Cowzow AI is now available: 3/5/2016 14:03:14


Tristan
Level 57
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 57
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 57

WarLight 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 57

WarLight 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


Bayern München is the best!
Level 58
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 14
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


Bayern München is the best!
Level 58
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 58
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 62
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 56
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 51
Report
so by any chance would it be easier to modify the one on warlight over the ones off of the AIGames
Posts 1 - 30 of 52   1  2  Next >>   

Contact | About WarLight | Play Risk Online | Multiplayer Strategy Game | Challenge Friends, Win Money | Skill Game | Terms of Service