<< Back to Programming Forum   Search

Posts 41 - 60 of 101   <<Prev   1  2  3  4  5  6  Next >>   
WarLight AI: 2/25/2016 20:04:13


Fleecemaster 
Level 59
Report
WarLight AI: 2/25/2016 20:20:52

Fizzer 
Level 64

Warzone Creator
Report
I just ran the .exe file. My AI played one turn however then an exception occurred:

(The first german line means that the input string sequence isn't a valid DateTime)

Sorry about that. The DateTimes are transmitted in US format, so it broke on a non-US system.

I just made a change to the code to specify that the DateTime is in en-US format. I don't have a non-US OS to test, but I believe this will fix it. Are you able to get the latest code from github, build it, and see if the problem is fixed?
WarLight AI: 2/25/2016 21:13:03

Алексей
Level 62
Report
Are you able to get the latest code from github, build it, and see if the problem is fixed?


I have tested the patch in Russian environment. Runs good.
WarLight AI: 2/26/2016 04:34:20


chuck norris
Level 59
Report
could you make the AI surrender when there is no way that it can win?
WarLight AI: 2/26/2016 05:12:46

Алексей
Level 62
Report
could you make the AI surrender when there is no way that it can win?


It will follow the surrender settings after it is developed, tested and deployed in production. It should not surrender otherwise. AI is never strong in computing if it can not win.
WarLight AI: 2/26/2016 06:34:27


Norman 
Level 58
Report
So, who is planning on working on this AI? I wrote my bot mainly between University and my first job, nowadays I don't have time for "hardcore coding" under the week. However I'd still like to participate.

I haven't looked into the details yet. Do the bots have fog? Apart from the Minimax picking (which Fizzer removed) calculating what is behind the fog was the only time consuming operation (and with reinforcement cards involved it would get quite more difficult). Apart from that, since Wunderwaffe doesn't look into further configurations, it should be capable to play on every map size very fast.

Also Wunderwaffe shouldn't have a concept of teammates or different opponents in ffa, obviously Fizzer had to adapt some stuff there (Teammates = neutrals?).
WarLight AI: 2/26/2016 07:32:16


Fleecemaster 
Level 59
Report
There will be a lot of work to create a good AI that can be hard coded into Warlight as the main one. The think the idea of a "fun" AI is that it won't be too strong.

I mean, idealy we can code into it responses depending on how tough the human it's playing against is (detecting behaviour)

The fact it can't learn is a possible problem in terms of not being able to adapt to players specific strengths and weaknesses and "go easy" on players it beats.

But I think it we all work together to some degree we can develop quite a robust little package that can hopefully deal with lots of various settings too.

I'm particularly interested in developing it's ability to use cards. I'll have to really start looking at this properly in the next few days, and seeing what we can do :)

Semi, by the sounds of things, you will always be able to run your own or (I presume) other people's AI scripts, but Fizzer is talking about specifically an AI to add to replace the current one. There's nothing to stop more being added in the future, but this is a hige step, because the current AI is way under-par and is holding back a lot of potential in the game.
WarLight AI: 2/26/2016 10:18:59


Latnox 
Level 60
Report
I can help with testing. Although, I don't know any specific language, I have general idea about programming, algorithms etc, so I can translate problem I see to form understandable for programmer.

EDIT: actually now when I think of it, I could even cooperate with a programmer. I can help with creating all the algorithms.

Edited 2/26/2016 10:35:26
WarLight AI: 2/26/2016 10:50:54


Latnox 
Level 60
Report
The fact it can't learn is a possible problem in terms of not being able to adapt to players specific strengths and weaknesses and "go easy" on players it beats.

Actually, I think it's impossible to crate AI strong enough to be really challenging even for a beginner. After you grasp basic rules, it's not hard to outsmart AI. And in my opinion AI, that actually require you to think is much more fun to play, than the one, that can beat you only with huge initial advantage (eg. current Insane SP challenge).

Also I would like to extend an idea, that was mentioned before. It might be interesting to create several AI's each for a specific settings, and then combine them together. So for example, there would be separate AI used for FFA's, 1v1 games, team games, maybe even different ones for game witch cards or full distribution/warlord distribution.

in this way, each person could write part of the code and create together AI that is versatile.
WarLight AI: 2/26/2016 16:40:33


ps 
Level 61
Report
technically speaking you could write wrappers for other languages, but the example is aimed at c# development.
WarLight AI: 2/26/2016 16:59:50

talia_fr0st
Level 59
Report
Fleece, can you un-blacklist me please!

If I were to make a bot for Strat ME 0% SR:

Picks:
1. Is it possible to take the bonus in one round by picking here?
Yes - pick it.
No - continue.
2. Is it possible to take the bonus in two...?
Yes - pick it.
No - continue.
3. Which picks have the lowest territories:bonus value?
Fill remaining picks based on ratio.

Play:
1. Is there a player in an adjacent territory?
Yes - How many armies are there in the adjacent territory?
Deploy until armies in adjacent territory = half * armies in own territory
Attack enemy.
No - Continue
2. Can I finish a bonus?
Deploy enough armies to finish the bonus.
Attack neutrals.
3. Is my opponent likely to be in bonus (x)?
Deploy enough armies to take next territory on route + 2.
Attack neutral.
4. Choose random adjacent neutral, deploy enough armies to take the territory, attack the territory.
WarLight AI: 2/26/2016 18:17:01


Epicular
Level 46
Report
When I run Warlight.ai.exe the console appears for a brief moment then closes again.

Can anybody tell me what the hell?
WarLight AI: 2/26/2016 18:51:12

lxkfjhls
Level 57
Report
When I run Warlight.ai.exe the console appears for a brief moment then closes again.

Run it by typing a command in the console, not by clicking on a file in a folder.

Edited 2/26/2016 18:51:26
WarLight AI: 2/26/2016 19:08:28


Norman 
Level 58
Report
I was wondering why nobody asked why the console immediately closes.

The fastest way to run stuff:
- Open the windows console
- Pull the WarLight.AI.exe into the console (or type the path manually)

The commands are then explained and you can also use Fizzer's blog / video.

However I don't believe that the bugfixes are part of the release exe, so your bot might crash during a game.

Edited 2/26/2016 19:10:28
WarLight AI: 2/26/2016 20:12:49


Fleecemaster 
Level 59
Report
Latnox - That's pretty much what I'm thinking :)

tomjh - I blacklisted you because you booted a player without asking in a practise game whilst the player in question was in hopspital. That's a pretty dickish thing to do, you should always at least ask in chat before booting a player. I always blacklist tactical booters, because a lot of my friends are in my games, and they aren't always able to take turns because of IRL problems, but we play under the understanding that we will just wait for them. If you boot my friends out of these games you're no longer welcome to them. Also I'm on the Corp Blacklist, so you should have me blasklisted anyway.

Sorry for being off track there guys, just wanted to respond (even though this has already been said many times already)
WarLight AI: 2/26/2016 20:13:30


Norman 
Level 58
Report
Guys, if you really want to give Wunderwaffe a chance then please play it on the clan league turkey template (not with local deployment). I put quite some thoughts into this bot for it to excell on open "fighting maps". I just have to find out about the fastest way to add open seats against the bot. Time for some people to get a nasty surprise...

Edit: So, how do I set up a 1v1 game "Wunderwaffe vs Open Seat"? I tried to create a game manually with 2 open seats and let Wunderwaffe join with "Play Wunderwaffe <GameID>" however I got the response "Not AIServer game".

Edited 2/26/2016 20:34:40
WarLight AI: 2/26/2016 20:31:55

Fizzer 
Level 64

Warzone Creator
Report
We're really going to limit it all to just one version of the AI? Because I thought it would be much better if we made several versions of default A.I. and then categorize them by difficulty.

Different difficulty levels would be handled by passing a flag to an AI telling it what difficulty to play as. In that sense, there's only one AI, it just alters its behavior by the flag that's passed in.

The primary goal is making an AI that's semi-competent and meets the goals I listed on the blog. Adding difficulty levels should be considered a secondary objective. I suggest working on the "hard" difficulty first, and adding reduced difficulty options at the end of we still have time. We don't want to get too far ahead of ourselves.

technically speaking you could write wrappers for other languages, but the example is aimed at c# development.

The framework just communicates to the server with json, so any language could work. However, the final bot that gets imported back to WarLight has to be in C#. Since it has to run in Flash, iOS, Android, the JVM, and Javascript, and most languages don't support this kind of portability. We have systems set up for C# to run in all these places.

Actually, I think it's impossible to crate AI strong enough to be really challenging even for a beginner.

I think if you watched some beginners play, you'd re-consider that statement. Think about someone who struggles to understand the concept of bonuses.

I just have to find out about the fastest way to add open seats against the bot.

Please don't do this. People that go to the Multi-Player tab to play a game expect to be playing against a human player. If they wanted to play against a robot they'd go to Single Player. It's fine for experienced people who know about this AI project, but for the masses I'd prefer that Open Games stay as multi-player games only.
WarLight AI: 2/26/2016 22:14:46


Epicular
Level 46
Report
An hour later, the Wunderwaffe bot still hasn't made their first move...
WarLight AI: 2/26/2016 22:28:00

Алексей
Level 62
Report
how do I set up a 1v1 game "Wunderwaffe vs Open Seat"

The Fizzer's video https://www.warlight.net/blog/index.php/2016/02/the-warlight-ai-goes-open-source/ features this. You invite the bot from the list of your friends, not put an open seat.
I'd prefer that Open Games stay as multi-player games only.

Put a lot of "AI" and "Bot" in the game title if you really need an open seat. It is better to invite the test player directly though.
WarLight AI: 2/26/2016 22:28:23


Norman 
Level 58
Report
There were some bugs which Fizzer fixed already. I guess you should run from the source code and not from the release exe file.

https://www.warlight.net/MultiPlayer?GameID=10618968
Posts 41 - 60 of 101   <<Prev   1  2  3  4  5  6  Next >>