Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Has AI been implemented?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> World in Flames >> Has AI been implemented? Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
Has AI been implemented? - 2/27/2018 1:05:58 AM   
crazydave1066


Posts: 34
Joined: 8/7/2017
From: Charlotte, NC
Status: offline
I've been following this game for a while but have been wanting for AI to be implemented before purchasing. I see for sure that head to head has been implemented but can't seem to find any updates on AI. Can someone help me?
Post #: 1
RE: Has AI been implemented? - 2/27/2018 1:11:38 AM   
davidachamberlain

 

Posts: 326
Joined: 1/21/2014
Status: offline

quote:

ORIGINAL: crazydave1066

I've been following this game for a while but have been wanting for AI to be implemented before purchasing. I see for sure that head to head has been implemented but can't seem to find any updates on AI. Can someone help me?

Not really.

There are some AI-ish features to simplify how the game is played, but this is really rules enforcement. There is some considerable design work that has been done, but the actual AI features will not be delveloped for a while yet. There are other priorities including addressing the most important defects, some optional rules, remaining single map scenarios.

You can see the details on current plans at:

http://www.matrixgames.com/forums/tm.asp?m=4388273

I expect that before any firm commitments are made, there will be further discussion on how it will need to work. Since WIF is a VERY VERY VERY complex strategy game, it will probably need to be incremental.

Until that time, it is still a good game for 2 players (or teams with multiple players) or solitaire which is a very challenging way to play the game.

Dave

(in reply to crazydave1066)
Post #: 2
RE: Has AI been implemented? - 2/27/2018 1:15:45 AM   
crazydave1066


Posts: 34
Joined: 8/7/2017
From: Charlotte, NC
Status: offline
Thanks for the quick response! I might just cave and buy the game anyways. How exactly does playing solitaire work out? I can't see how it would be nearly as much fun without the element of surprise.

(in reply to davidachamberlain)
Post #: 3
RE: Has AI been implemented? - 2/27/2018 1:40:01 AM   
davidachamberlain

 

Posts: 326
Joined: 1/21/2014
Status: offline
quote:

ORIGINAL: crazydave1066

Thanks for the quick response! I might just cave and buy the game anyways. How exactly does playing solitaire work out? I can't see how it would be nearly as much fun without the element of surprise.

There are several threads on this.

The game is based on board game, which used dice, but uses the same feature.

Random elements include at least the following:
1) initiative rolls
2) weather rolls
3) surprise rolls (for naval combat)
4) combat rolls (air, ground, naval)
5) turn ending rolls

On top of that, when playing a larger, more complex scenario, you add the complexity and human nature to the mix.

There are 3 major Axis and 5 major Allied powers. It can be really challenging to remember your plans. Often, you will miss something that was important or even less important and have the opportunity to "catch yourself" with that error and exploit it with the other side.

Since the weather can vary every other impulse and the turn can go on for a long time or suddenly end, the strategy becomes much less fluid.

After playing the game for more than a year with both a 4 player Netplay (internet long distance) and solitaire games, I still find it very challenging.

I find it easier to play the multiplayer games since I only have to focus on 1 or 2 major powers from the same side than dealing with 8.


Dave

(in reply to crazydave1066)
Post #: 4
RE: Has AI been implemented? - 3/1/2018 11:47:15 PM   
AlbertN

 

Posts: 3693
Joined: 10/5/2010
From: Italy
Status: offline
I warmly suggest you buy Matrix World in Flames as game.
It teaches you how to play the game in a way that to try it on Vassal can be tiresome. Because things are enforced. And because the order of play is strict here.

But then in the future I suggest you move on to play on Vassal with the latest edition of the game that is coming out.

(in reply to davidachamberlain)
Post #: 5
RE: Has AI been implemented? - 3/2/2018 4:10:20 PM   
Grotius


Posts: 5798
Joined: 10/18/2002
From: The Imperial Palace.
Status: offline
I love playing solitaire, and yes, I routinely forget what the "earlier me" was doing when I was playing another side. Especially if I take a couple days between Major Power turns, as I sometimes do.

It's a great way to learn the game system and basic tactics. I've ordered the new physical Collector's Edition, so I'm trying to make myself predict how MWIF will handle a rule beforehand. Of course MWIF uses RAW7, not RAW8, but the core of the rules is the same.

All that said, I worry that my solo play is instilling bad habits, especially on the strategic level. I constantly read and see things I hadn't thought of here. I may end up trying RAW8 on Vassal, or MWIF with Netplay. But for now, solitaire is awesome!

_____________________________


(in reply to AlbertN)
Post #: 6
RE: Has AI been implemented? - 3/10/2018 5:43:34 AM   
Auchinleck

 

Posts: 174
Joined: 2/9/2006
Status: offline
Picture playing Chess against yourself. Pretty hard to fool yourself using strategy, considering you're your own opponent. An AI is what's desperately needed to make the game worth the expense.

(in reply to crazydave1066)
Post #: 7
RE: Has AI been implemented? - 3/10/2018 5:41:07 PM   
paulderynck


Posts: 8201
Joined: 3/24/2007
From: Canada
Status: offline
Nowadays the chess AIs beat all the humans so why bother with an AI?

_____________________________

Paul

(in reply to Auchinleck)
Post #: 8
RE: Has AI been implemented? - 3/10/2018 11:29:37 PM   
Neilster


Posts: 2890
Joined: 10/27/2003
From: Hobart, Tasmania, Australia
Status: offline

quote:

ORIGINAL: paulderynck

Nowadays the chess AIs beat all the humans so why bother with an AI?

Because they can be set for any level of play. As one improves, you can increase the AI's ability. They can also be set to play aggressively or defensively or use unusual openings etc.

Cheers, Neilster

(in reply to paulderynck)
Post #: 9
RE: Has AI been implemented? - 3/10/2018 11:43:56 PM   
Neilster


Posts: 2890
Joined: 10/27/2003
From: Hobart, Tasmania, Australia
Status: offline

quote:

ORIGINAL: Auchinleck

Picture playing Chess against yourself. Pretty hard to fool yourself using strategy, considering you're your own opponent. An AI is what's desperately needed to make the game worth the expense.

An AI for MWiF is obviously a good thing and hopefully it will eventually arrive. Until it does, however, apart from hotseat and netplay, MWiF is far more suited to solitaire play than chess as it involves more unit types, more potential moves and includes probabilities.

I've had excellent solitaire games. As mentioned above, it's very hard to predict all the "other side's" potential moves. Also, if I for my current side/power I have more than one seemingly good course of action, I'll flip a coin or roll a die to decide. This mixes things up considerably and makes it difficult to predict what will happen.

If you haven't tried a solitaire game, I highly recommend it. It's also a great way to learn the system.

Cheers, Neilster

(in reply to Auchinleck)
Post #: 10
RE: Has AI been implemented? - 3/10/2018 11:45:38 PM   
paulderynck


Posts: 8201
Joined: 3/24/2007
From: Canada
Status: offline

quote:

ORIGINAL: Neilster


quote:

ORIGINAL: paulderynck

Nowadays the chess AIs beat all the humans so why bother with an AI?

Because they can be set for any level of play. As one improves, you can increase the AI's ability. They can also be set to play aggressively or defensively or use unusual openings etc.

Cheers, Neilster


I look forward to such an AI for MWiF, but forgive me if I don't hold my breath.

_____________________________

Paul

(in reply to Neilster)
Post #: 11
RE: Has AI been implemented? - 3/11/2018 1:14:33 AM   
davidachamberlain

 

Posts: 326
Joined: 1/21/2014
Status: offline

quote:

ORIGINAL: Auchinleck

Picture playing Chess against yourself. Pretty hard to fool yourself using strategy, considering you're your own opponent. An AI is what's desperately needed to make the game worth the expense.

As I mentioned in my earlier post, between weather, initiative, short or long turns, searches, attacks, and just plain forgetting your plan for dealing with 8 major powers every turn, there is quite enough "fog of war" to keep the games interesting - even without AI.

Dave

(in reply to Auchinleck)
Post #: 12
RE: Has AI been implemented? - 3/11/2018 8:45:21 AM   
Cataphract88


Posts: 728
Joined: 10/5/2012
From: Britannia
Status: offline
So, it's more like playing chess with yourself, but with dozens and dozens of chessmen on a ginormous board.

_____________________________

Richard

(in reply to davidachamberlain)
Post #: 13
RE: Has AI been implemented? - 3/22/2018 5:13:19 PM   
wodin


Posts: 10762
Joined: 4/20/2003
From: England
Status: offline
The main reason I got into computer games four s that I no longer needed to find someone else to play games I like. Also I'm useless at most games so never had issues with AIs though I've never set out to game them is find its weakness as some do, would ruin it for me.

< Message edited by wodin -- 3/22/2018 5:15:08 PM >


_____________________________


(in reply to Cataphract88)
Post #: 14
RE: Has AI been implemented? - 3/22/2018 6:47:05 PM   
davidachamberlain

 

Posts: 326
Joined: 1/21/2014
Status: offline

quote:

ORIGINAL: wodin

The main reason I got into computer games four s that I no longer needed to find someone else to play games I like. Also I'm useless at most games so never had issues with AIs though I've never set out to game them is find its weakness as some do, would ruin it for me.

Well, maybe someday. It is on the roadmap for some time after the bugs get fixed.

It will be challenging to develop and keep it playable, but Steve is keen to do that.

In the mean time, I still find it to be a good solitaire game, but I do understand your point about your concern about the abilility to play.

This game does very good at managing the rules so you are not able to do anything you are not allowed to. That helps a lot and allows you to focus more on the strategy. However, as others have mentioned, playing against yourself does eliminate some of the challenge, but I still find that between the impact of roles on initiative, turn length, weather, and the results of naval search and combat rolls, and just forgetting to do something in a turn, there are still enough things to keep it challenging (for me).

Dave

(in reply to wodin)
Post #: 15
RE: Has AI been implemented? - 4/18/2018 8:28:22 PM   
Nicolas II

 

Posts: 12
Joined: 4/18/2018
Status: offline
Would be great to have a good AI for this game

(in reply to davidachamberlain)
Post #: 16
RE: Has AI been implemented? - 4/18/2018 11:45:30 PM   
Courtenay


Posts: 4003
Joined: 11/12/2008
Status: offline
Yes it would, but it won't happen in this decade.

_____________________________

I thought I knew how to play this game....

(in reply to Nicolas II)
Post #: 17
RE: Has AI been implemented? - 4/19/2018 8:44:29 AM   
Nicolas II

 

Posts: 12
Joined: 4/18/2018
Status: offline
Next decade ? perhaps

(in reply to Courtenay)
Post #: 18
RE: Has AI been implemented? - 4/19/2018 9:51:59 AM   
Neilster


Posts: 2890
Joined: 10/27/2003
From: Hobart, Tasmania, Australia
Status: offline

quote:

ORIGINAL: Nicolas II

Next decade ? perhaps

I can't find it quickly but there was a thread years ago where lots of work on the AI was done. It's the intention of Steve (the developer) to do an AI but he has other priorities first.

He's developed a quasi programming language for it and WiF experts here have thrashed out almost every conceivable strategy for each power.

Hang in there. This game is a long haul. Welcome to the forum, by the way

Cheers, Neilster

(in reply to Nicolas II)
Post #: 19
RE: Has AI been implemented? - 4/19/2018 1:40:56 PM   
Joseignacio


Posts: 2449
Joined: 5/8/2009
From: Madrid, Spain
Status: offline
... in case we don't pass out earlier.

I was thinking Bo was funny when saying so, but he had a certain age and he was half serious half joking.

Now I am not so sure it was such a joke, after the 13? years of the previous developer this project seemed a much shorter program, like 5 or 6 years in the initial estimations, but the project is running from 2007? and not even MP for two opponents is fully ready.

Who knows how many years this can still take to end this fully and develop AI? Some people may have died in this 11 years, and some more may not be here when the AI is done...

Sorry to mention it but not speaking on it will not prevent it to happen.

< Message edited by Joseignacio -- 4/19/2018 1:41:25 PM >

(in reply to Neilster)
Post #: 20
RE: Has AI been implemented? - 4/19/2018 1:44:41 PM   
Kull


Posts: 2625
Joined: 7/3/2007
From: El Paso, TX
Status: offline
This is a summary I created a while back, to consolidate AI plans and steps taken to date (There's probably been one or two updates since then):

Here's what we know about the MWIF AI, starting with Steve's 10/1/2010 Monthly Report which contained a detailed description of what's planned, and the state of the AI at that time:

quote:

Artificial Intelligence (AI)
The AIO decisions are primarily made using scripts written in LAIO (Language for Artificial Intelligence Opponent). This is a rule based language which I created for MWIF. LAIO is fully defined and dozens of test scripts have been written by Peter Skoglund, with help from me.

The test scripts are for setting up units for each of the minor countries in the game, from a single unit for Persia to the more complex setups for Poland, Spain, and Turkey. Peter has also created a script for setting up France in the Global War scenario. These scripts are quite sophisticated, taking into consideration which major power declared war on the minor country, the type and location of enemy units, and possible support from allies. For instance, the script for setting up the single Persian unit has logic for threats from land, air (e.g., paradrops), and sea (e.g., amphibious assaults) from all directions.

To convert the LAIO scripts into actions to be taken by MWIF, (on behalf of the AIO), requires a parser. The parser reads a script and generates a set of commands comparable to what a human player enters using the mouse and keyboard. I’ve written about 80% of the parser code, and debugged that much using the scripts created by Peter. I need to finish the last 20%, but more importantly, I need to have the parser ‘recognize’ ~300 function calls. For example, when a script references a unit’s type, the parser has to ‘fetch’ the unit type datum which is stored internally. There are numerous characteristics of units, unit stacks, hexes, and countries which the program already stores internally. For each of them, LAIO needs a symbol/string defined and the parser needs to translate the symbol, when it occurs in a script, into a function that returns the internal value.

There are 143 decision points in the sequence of play where the AIO needs to decide what to do. 122 of these use universal logic, in that they do not depend on which major power is making the decision (e.g., rail moves, strategic bombing, naval interceptions, placing partisans). For the other 21, the logic does depend on which major power is making the decision. Examples of those are: strategic plans, declarations of war, production plans, and trade agreements. I have 200 pages of text describing strategic plans. Each major power has their own section and the plans are well organized. For the French, I’ve started encoding their strategic plan as data.

The AIO makes decisions using either LAIO scripts (preferred) or by using a routine hard coded in Pascal, but data driven. Which is used depends on the expediency of writing the code. For example, there are a lot of unique decisions that do not deserve spending the time to write a LAIO script. USSR territorial claims, US entry option choices, and routing resources to factories can be handled better by Pascal code than by LAIO code. On the other hand, moving units and deciding about attacks are best done using a LAIO script. That way we can add and remove portions of a script while MWIF is executing and immediately test the effect of the changes. MWIF can parse a revised script “on the fly”, which isn’t possible for Pascal code.

For the 122 ‘universal’ decision points, I start by writing plain text that describes how the decision is to be made. I’ve done 73 of them as plain text so far. The second step is to translate the plain text into a LAIO script. All of that work remains to be done.

Once all 143 decision points have either Pascal code or a LAIO script, the AIO can execute autonomously. In practice, we will introduce the AIO decisions one at a time, evaluating how good each decision is and modifying the script/code until we are happy with it.


From that point forward, progress was reported in almost every month of 2011 (including a nice year-end summary). From 2012 through 2014 there wasn't much activity, but things picked up in 2015 (3 substantial progress reports). Since then, not much has been reported. The key point, however, is that a LOT of work has gone into developing and testing a working AI for MWIF.

Anyway, here's every single monthly AI progress report (the ones with comments):

The update on 2/1/2011:

quote:

Artificial Intelligence (AI)
Peter is anxious to write more scripts and test the ones he has already completed. The latter are for setting up minor country units when they enter the war. I think he has a script for each minor country at this point. There are a lot of small decisions in WIF and I’ve set up the AIO decision making so each one is a separate decision point. The task is to work out the process for how the AIO should make each decision and then write it up as a LAIO (Language for an AI Opponent) script.

Matt should be a great help on this. I find that everyone contributes new insights into what needs to be done for the AIO and how to accomplish it.

From Mitchell:
I studied the AIO language and a few of the scripts. Finishing the LAIO parser should not be too difficult but I have yet to coordinate with Rolf to get started - will do so next.


The update on 3/1/2011:

quote:

Artificial Intelligence (AI)
Peter made excellent progress on the geographic breakdown for the AI Opponent. I revised the documentation on the command structure for the AIO so each element of the geography has a corresponding decision maker. There are 16 Theaters of Operation (TOs) that span the global map. Within each TO there is a breakdown for naval units into Sea Area Groups (which contain individual Sea Areas) and for land units into Areas of Operations (which contain Land Regions). The goal here is to provide a hierarchy of decision makers for strategic and operational decisions and a different decision maker for tactical decisions.

For instance, decisions about convoy routes span multiple sea areas and are made higher up in the chain of command, while decisions concerning a specific naval combat are made by the Fleet Admiral responsible for the sea area in which the combat is taking place. Likewise army reinforcements are shipped off to various TOs, whose commander designates which AO gets them; the AO commander designates a Land Region, whose Commanding General then decides in which hex to place the new unit.

What Peter has achieved is a finished geographic breakdown for Western Europe and the Med. He has almost completed the same for Eastern Europe. Those 3 geographic regions encompass the WIF FE European map.

Rolf and Mitchell plan to work together on completing the parser for LAIO (Language for an Artificial Intelligence Opponent) scripts. Peter has been working diligently on LAIO scripts and deserves seeing them in action, making decisions, ASAP.


The update on 4/1/2011:

quote:

Artificial Intelligence (AI)
I changed the fundamental data structure for the map so it can hold additional information on the geographical breakdown for the AIO. This should have zero effect on game play as far as human players are concerned. The change to the Terrain data adds a new field to each land hex to store the Land Region ID #. Along with this I added a new field to the Sea Area data to store the Sea Area Group ID #. And as the final pieces, I created simple Theater of Operation, Area of Operation, Land Region, and Sea Area Group files which hold the details on each of those elements, including cross references. In practice, this means that the AI Opponent code can trace any land hex back to its LR, AO, and TO, and can trace an all-sea hex back to its sea area, SAG, and TO. The AIO uses this data to ‘understand’ the map.

The greatest advantage that a human player has over the AIO is the ability to literally ‘see’ the map. For the AIO it is just a bunch of incohesive data. Using the newly added geographical data, the AIO can assess the strength of the forces on both sides in a land region and decide whether to attack, maneuver, defend, or retreat. The same applies to AOs, SAGs, and TOs. This is my best attempt to mimic a human player simply looking at the map and making a quick assessment of the relative strengths of the two sides.

In order to validate the new data I added a (debug) line under the Main form that shows and updates the TO, AO, LR, and SAG values as the cursor is scrolled across each hex. Peter is maintaining the data for those files, but Patrice has volunteered to do the hard task: entering a LR ID # for each land hex on the map (~20,000). I got this started by entering the data for Iceland (whoop-de-do!). I did that so I could test that the software found the correct LR name for each hex.

Peter continues to made excellent progress on the geographic breakdown for the AI Opponent with advice from Patrice and myself. To date, he has finished 8 of the 16 TOs: Western Europe, Eastern Europe (up to Siberia), Mediterranean, East Africa, West Africa, Middle East, South Asia (i.e., India), East Asia (i.e. China & Japan), and is working on Southeast Asia. The last includes the South China Sea, the Bismarck Sea, the Solomons, and the Marianas.

Rolf has made some progress on completing the parser for LAIO (Language for an Artificial Intelligence Opponent) scripts. That is slow going, which is understandable. There was a good reason why I stopped working on the parser where I did: the next step was really difficult.


The update on 5/1/2011:

quote:

Artificial Intelligence (AI)
Peter continues to made excellent progress on the geographic breakdown for the AI Opponent with advice from Patrice and myself. To date, he has finished 12 of the 16 TOs: Western Europe, Eastern Europe (up to Siberia), Mediterranean, East Africa, West Africa, Middle East, South Asia (i.e., India), East Asia (i.e. China & Japan), Southeast Asia, Oceania (i.e., Australia), Pacific Ocean, and North Asia (i.e., Siberia). All that remains are two TOs in the Americas and two in the Atlantic Ocean.

I still need to pick up the LAIO parser where Rolf left off. But that won’t happen until I kill off the last of the sequence of play bugs.


The update on 6/1/2011:

quote:

Artificial Intelligence (AI)
Peter is close to finishing the geographic breakdown for the AI Opponent. He has just one left to do: Atlantic South America. I still need to pick up the LAIO parser where Rolf left off. But that won’t happen until I kill off the last of the sequence of play bugs.


The update on 7/1/2011:

quote:

Artificial Intelligence (AI)
Peter finished the geographic breakdown for the AI Opponent. It looks great.

I have asked him to look into the Data Structures necessary for AIO strategic plans. I had already done some preliminary work on that. The goal is to design variables for holding all the information necessary to define a strategic plan for a major power. The 3 main elements are: (1) objectives to hold/take, (2) geographical areas to defend/attack, and (3) time lines for declarations of war/offensives, with accompanying production schedules. Some of the data will define conditions for when something should happen (e.g., when to start building garrison units). Defining data structures for conditionals is always difficult, but Peter and I already did some of that when we were working on setup scripts.


The update on 8/1/2011:

quote:

Artificial Intelligence (AI)
Peter continues to work on the data structures for AIO strategic plans. That is slow going because he keeps coming up with questions for me to answer and I haven’t had enough time to be as responsive as I would like. But some progress is being made. It isn’t easy to take all the amorphous advice provided by the forum members and render it into a rigidly structured outline for processing by a computer program.


The update on 9/1/2011:

quote:

Artificial Intelligence (AI)
Peter continues to work on the data structures for AIO strategic plans. Much of this is coming together. For instance, last week he was grinding out the conditions under which France should surrender. I answer his questions from time to time but the bulk of this work is being done by Peter.


The update on 10/1/2011:

quote:

Artificial Intelligence (AI)
Peter sent me his final list of Areas of Operation and Land Regions. I was able to partially review and modify those. Currently there are 126 AOs and 320 LRs. The Sea Area Groups are now complete and Peter is turning his attention back to Strategic Plans for France.


The update on 12/1/2011:

quote:

Artificial Intelligence (AI)
I finished checking the names for the Areas of Operation and Land Regions so they conform to the ‘standard’ I set up. The major task remaining is to change the data file for the terrain, adding a digit to the end of the row of data for each land hex. There are 70,200 hexes, each of which has its own row of data. Mercifully, the all-sea hexes do not need to be edited (they use the default value).


Final Report for 2011:

quote:

Artificial Intelligence (AI)
Peter finished the geographic breakdown for the AI Opponent. To go with that, I revised the documentation on the AIO command structure so each element of the geography has a corresponding decision maker. There are 16 Theaters of Operation (TOs) that span the global map. Within each TO there is a breakdown for naval units into Sea Area Groups (which contain individual Sea Areas) and for land units into Areas of Operations (which contain Land Regions).

I changed the fundamental map data structure to include information on the geographical breakdown. This should have zero effect on game play as far as human players are concerned. The change to the Terrain data adds a new field to each land hex to store the Land Region ID #. Along with this I added a new field to the Sea Area data to store the Sea Area Group ID #. And as the final pieces, I created simple files listing the Theaters of Operation, Areas of Operation, Land Regions, and Sea Area Groups which hold the details on each of those elements, including cross references. In practice, this means that the AI Opponent code can trace any land hex back to its LR, AO, and TO, and can trace an all-sea hex back to its sea area, SAG, and TO. In order to validate the new data I added a (debug) line under the Main form that shows and updates the TO, AO, LR, and SAG values as the cursor is scrolled across each hex.

The 16 TOs are: Western Europe, Eastern Europe (up to Siberia), Mediterranean, East Africa, West Africa, Middle East, North Asia (i.e., Siberia), South Asia (i.e., India), East Asia (i.e. China & Japan), Southeast Asia, Oceania (i.e., Australia), Pacific Ocean (central), Atlantic North America, Atlantic South America, Pacific North America, and Pacific South America. There are 126 AOs and 320 LRs. The major task remaining is to change the data file for the terrain, adding a digit to the end of the row of data for each land hex. There are 70,200 hexes, each of which has its own row of data. Mercifully, the all-sea hexes do not need to be edited (they use the default value).

The greatest advantage that a human player has over the AIO is the ability to literally ‘see’ the map. For the AIO it is just a bunch of incohesive data. Using the geographical data, the AIO can now assess the strength of the forces on both sides in a land region and decide whether to attack, maneuver, defend, or retreat. The same applies to AOs, SAGs, and TOs. This is my best attempt to mimic a human player simply looking at the map and making a quick assessment of the relative strengths of the two sides.

Another goal here was to provide a hierarchy of decision makers for strategic and operational decisions and a different decision maker for tactical decisions. For instance, decisions about convoy routes span multiple sea areas and are made higher up in the chain of command, while decisions concerning a specific naval combat are made by the Fleet Admiral responsible for the sea area in which the combat is taking place. Likewise army reinforcements are shipped off to various TOs, whose commander designates which AO gets them; the AO commander then designates a Land Region, whose Commanding General decides in which hex to place the new unit.

After completing the geographic breakdown of the entire global map (a massive task which required assessing all 70,200 hexes), Peter worked on the data structures for AIO strategic plans. I had already done some preliminary work on that. The goal is to design variables for holding all the information necessary to define a strategic plan for a major power. The 3 main elements are: (1) objectives to hold/take, (2) geographical areas to defend/attack, and (3) time lines for declarations of war/offensives, with accompanying production schedules.

Some of the strategic plan data defines conditions for when something should happen (e.g., when to start building garrison units). Defining data structures for conditionals is always difficult, but Peter and I already did some of that when we were working on setup scripts. It isn’t easy to take the amorphous advice provided by the forum members and render it into a rigidly structured outline for processing by a computer program. For instance, late in the year he was grinding out the precise conditions under which France should surrender.

Rolf made some progress on completing the parser for LAIO (Language for an Artificial Intelligence Opponent) scripts.


The update on 5/1/2012:

quote:

Artificial Intelligence (AI)
In making changes to support NetPlay I reviewed, and made a couple of changes to, the code determining which major powers are decision makers (I was able to reduce the code from over 1000 lines to 825). The important thing was to enable a player, who currently has no decisions to make, to have full access to the map, units, and various forms to review the status of his position vis-a-vis his opponent.

Another change I made for NetPlay, that has direct bearing on the AI Opponent code, was that I created a separate thread to run some code “in the background”. It is a minor technicality but I am happy to now have a working example of how to code background threads using Delphi. Virtually all the AIO code will execute in separate (i.e., background) threads. The intent is to have the AIO figure out what to do, while its human opponent is moving and clicking the mouse and using the keyboard. When the time comes for the AIO to decide something, it should be able to do so quickly.


The update on 8/1/2013:

quote:

Artificial Intelligence (AI)
Nothing new. But Peter S. is anxious to get back to work on this - as am I.


The update on 9/1/2013:

quote:

Artificial Intelligence (AI)
Nothing substantially new. Peter S. has been working on the strategic plans for Italy and I added a comment or three from time to time.


The update on 1/1/2014:

quote:

AI Opponent
I’m not suppose to be working on this yet but I’ve found a necessary task that is undemanding and serves as a break from debugging. I take 20-40 minutes a day typing in the land region IDs for land hexes. All sea hexes already have their Sea Area IDs which can be used by the AIO when making decisions involving movement and control of all sea hexes. For the land hexes, Peter S. and myself have worked out 321 different land regions. Those are grouped into Areas of Operations, which are grouped in turn into Theater of Operations. But that information has to be communicated to the AIO so it can ‘think’ in terms of “defending western France from invasions”, or “advancing into the Ukraine.” To do that I am editing the TER data file, adding a land region ID to the end of each line of data: one line per hex. So far I’ve completed all of Europe, from Iceland to the Canary Islands, from Karelia to Suez. I’m going to do the USSR next, up to Sverdlovsk, which should be enough for the AIO to ‘play’ Barbarossa. There are a lot of hexes in the USSR and each one of them needs their own little Land Region ID number.


The update on 2/1/2014:

quote:


AI Opponent
This mostly dropped off my radar in January, but I expect to be able to get back to assigning Land Region IDs to Africa in February. One of the reasons I stopped was that I had achieved my first goal: assigning land regions to every hex in the European Theater of Operations, which means the basic data necessary for the AIO to play Barbarossa is in place. Getting the AIO to play both sides of Barbarossa will be the first ‘actual’ game for testing the AIO. Concurrent with that, we will be testing the scripts for setting up units in the other scenarios. There are a lot of scenarios and a lot of major powers, plus all the minor countries, so creating and testing the scripts for simply setting up units is a non-trivial task in coding the AIO.

Oh, as I have mentioned before and should repeat again now, Barbarossa, Guadalcanal, Global War, and Fascist Tide will be the scenarios we will primarily focus on for the AIO. These 4 scenarios are the ones most players want to play, so they sit at the forefront for the AIO to learn to play well.


The update on 2/4/2015:

quote:

AI Opponent
I took a couple of hours to review the Land Regions the AI Opponent will use when playing Barbarossa. The basic design for the AIO dealing with land and naval operations is to divide the world into 16 Theater of Operations (TOs), such as Western Europe, Eastern Europe, Mediterranean, Southeast Asia, etc. Within each TO there are varying number of Areas of Operation (AOs). The picture below shows four of the nine AOs in Eastern Europe: Central Western USSR, Southwestern USSR, Central European USSR, and Southeastern USSR.

Within each AO there are Land Regions. In the picture you can see the dotted lines that define the three land regions in the Southwestern USSR AO: Kiev, Kharkov, and Crimea. For Barbarossa, the AIO will use just the Eastern European TO, with some of its AOs excluded: Sweden, Turkey, and half of the Balkans.

All of the above work was done 2 or 3 years ago, with the vast majority of it done by Peter S.

In January Peter started to work on the formulae the AIO will need to set up the USSR at the start of the Barbarossa scenario. I was only able to spend a couple of hours helping him, but the beta testers have been reviewing and critiquing what he has done so far. The focus is on scrapping units and making decisions about which air units receive pilots (or the equivalent when not using the optional rule). For scrapping, we’ll just have several predefined scrap lists for the AIO to choose from. To assign pilots the process is more sophisticated.

What Peter has been working on is a formula for setting the absolute Combat Value (CV) for air units. Units with a higher CV will be given pilots before those with a lower CV. Obviously, for fighters the air-to-air factor is most important. How to differentiate based on other factors, such as range, is more subjective. But we want the AIO to have one formula for the absolute CV.

When choosing which units to build, the CV will be very important, but divided by the BP cost, so if everything else is equal, the AIO will build a 2 BP fighter before a 3 BP fighter. Similarly, when having to decide which unit to commit to a risky air-to-air combat, the AIO will prefer to send a less expensive unit.

But the relative CV for units is also situationally dependent. At times it will be better to send a more expensive fighter into a naval air engagement simply because it can reach a higher sea area section box. Clearly numerous other factors also influence those decisions.

Once the CV calculations are in place, the AIO will be able to assign pilots for each major power at the start of every scenario. Peter will then start work on deciding which units are assigned to each Land Region and then where those units should be placed within a land region. But that will just be for the USSR in Barbarossa.


The update on 3/5/2015:

quote:


AI Opponent (AIO)
Peter S. has pretty much completed the formulae for setting the absolute Combat Value (CV) for air units. Units with a higher CV will be given pilots before those with a lower CV. Obviously, for fighters the air-to-air factor is most important. How to differentiate based on other factors, such as range, is more subjective. But we want the AIO to have one formula for the absolute CV for each unit in the game.

What he is working on now is the decision making process for choosing in which hexes the USSR units should be placed at the start of the Barbarossa scenario. He wants to have several variation (i.e., strategies) for how the USSR sets up its units. I am more concerned with choosing the best setup possible every time. A good case can be made for both sides.

Another aspect of choosing where to place units is to take into consideration the USSR reserves and reinforcements, especially those that arrive at the beginning of the second turn. Of course that means calculating how many build points will be available for the USSR at the end of the first turn. Following that logic path, the AI Opponent must be able to estimate the number of factories and resources the USSR will hold at the end of the first turn.

I’m not spending more than a couple of hours a month on this - commenting on what Peter is doing and providing some advice. Peter has already written a little script (in LAIO - Language for AI Opponent) for choosing setup hexes for the USSR.


The update on 4/5/2015:

quote:

AI Opponent (AIO)
Peter S. and I worked out good starting locations for the USSR units in Barbarossa. That includes which units to scrap. We’ll probably want to add some variations to the starting setup locations for the USSR, but I really would prefer to have the best setup possible, rather than have the AIO give itself known weaknesses from the very beginning of the game. Because the scenario is only 5 turns long, there are only 4 Production opportunities and the last two have severe limitations of what can be produced, since the game ends so quickly. Peter has written some logic as to what unit types should be built by the USSR based on how well/poorly the Germans are doing in capturing Russian cities. That all looks quite reasonable to me.


The update on 1/4/2016:

quote:

AI Opponent (AIO)
Nothing new in December. However, any changes made for NetPlay also apply to making the AI Opponent operational, since both modes of play require informing human players about moves made by other players.


_____________________________


(in reply to Neilster)
Post #: 21
RE: Has AI been implemented? - 6/18/2018 12:18:19 AM   
GrizzlyKt


Posts: 81
Joined: 5/25/2018
Status: offline
any ai yet

(in reply to Kull)
Post #: 22
RE: Has AI been implemented? - 6/18/2018 6:30:34 AM   
paulderynck


Posts: 8201
Joined: 3/24/2007
From: Canada
Status: offline
No

_____________________________

Paul

(in reply to GrizzlyKt)
Post #: 23
RE: Has AI been implemented? - 6/19/2018 2:40:21 AM   
Neilster


Posts: 2890
Joined: 10/27/2003
From: Hobart, Tasmania, Australia
Status: offline

quote:

ORIGINAL: paulderynck

No

Tell him what you really think

Cheers, Neilster

(in reply to paulderynck)
Post #: 24
RE: Has AI been implemented? - 6/19/2018 2:45:15 AM   
paulderynck


Posts: 8201
Joined: 3/24/2007
From: Canada
Status: offline
No

_____________________________

Paul

(in reply to Neilster)
Post #: 25
RE: Has AI been implemented? - 6/19/2018 10:03:36 PM   
GrizzlyKt


Posts: 81
Joined: 5/25/2018
Status: offline
No lol

(in reply to paulderynck)
Post #: 26
RE: Has AI been implemented? - 6/20/2018 10:32:11 AM   
Revthought


Posts: 523
Joined: 1/14/2009
From: San Diego (Lives in Indianapolis)
Status: offline

quote:

ORIGINAL: davidachamberlain


quote:

ORIGINAL: crazydave1066

I've been following this game for a while but have been wanting for AI to be implemented before purchasing. I see for sure that head to head has been implemented but can't seem to find any updates on AI. Can someone help me?

Not really.

There are some AI-ish features to simplify how the game is played, but this is really rules enforcement. There is some considerable design work that has been done, but the actual AI features will not be delveloped for a while yet. There are other priorities including addressing the most important defects, some optional rules, remaining single map scenarios.

You can see the details on current plans at:

http://www.matrixgames.com/forums/tm.asp?m=4388273

I expect that before any firm commitments are made, there will be further discussion on how it will need to work. Since WIF is a VERY VERY VERY complex strategy game, it will probably need to be incremental.

Until that time, it is still a good game for 2 players (or teams with multiple players) or solitaire which is a very challenging way to play the game.

Dave


Just as long as we all realize that this is not the way to develop a game, particularly if you want to actually sell it to an audience over a couple hundred people.

_____________________________

Playing at war is a far better vocation than making people fight in them.

(in reply to davidachamberlain)
Post #: 27
RE: Has AI been implemented? - 6/20/2018 12:46:12 PM   
Capitaine

 

Posts: 1043
Joined: 1/15/2002
Status: offline
The "problem" now is that the game is dated with the advent of WiFCE. I'm less likely to buy this, even with an AI, with the components not being up to date. Blame ADG I guess, but this is the cold hard fact regarding my own inclinations at least.

(in reply to Revthought)
Post #: 28
RE: Has AI been implemented? - 6/20/2018 1:46:45 PM   
GrizzlyKt


Posts: 81
Joined: 5/25/2018
Status: offline
hi what is this WiFCE thank you for your help

(in reply to Capitaine)
Post #: 29
RE: Has AI been implemented? - 6/20/2018 1:52:46 PM   
GrizzlyKt


Posts: 81
Joined: 5/25/2018
Status: offline
Could we get some hard facts from developers about what is happening with the game in as i just purchased this yesterday

(in reply to GrizzlyKt)
Post #: 30
Page:   [1] 2   next >   >>
All Forums >> [New Releases from Matrix Games] >> World in Flames >> Has AI been implemented? Page: [1] 2   next >   >>
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.188