<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Rules interpretation for placement Human vs AI]]></title><description><![CDATA[<p dir="auto">Hi all:</p>
<p dir="auto">First off I would like to thank <a class="plugin-mentions-user plugin-mentions-a" href="/user/victoryfirst" aria-label="Profile: victoryfirst">@<bdi>victoryfirst</bdi></a> for his excellent map "Classic League". This is the mod I used here.<br />
I would also like to thank <a class="plugin-mentions-user plugin-mentions-a" href="/user/thedog" aria-label="Profile: thedog">@<bdi>thedog</bdi></a> who as described a problem he has with "1941 Global Command Decision" for a long time.<br />
And also <a class="plugin-mentions-user plugin-mentions-a" href="/user/frigoref" aria-label="Profile: frigoref">@<bdi>frigoref</bdi></a> who suggested I post here to get these rules clarified.<br />
I get things wrong, ask <a class="plugin-mentions-user plugin-mentions-a" href="/user/beelee" aria-label="Profile: beelee">@<bdi>beelee</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/cernel" aria-label="Profile: cernel">@<bdi>cernel</bdi></a>, I get things wrong alot.<br />
Now for a little background.<br />
When the AI encounters a purchase step it simulates certain steps between the purchase and the place or and endStep. These steps include combat move, combat, non-combat move and politics. If any of these steps come before purchase or after a place or endStep are not simulated. Also steps like tech and user actions are not simulated. When the place step is encountered, the AI simulates a purchase to place phase. Purchasing one unit at a time by evaluating its needs, using the simulated information, the placing that unit in a territory that can produce that unit.<br />
This first figure shows a Human Germans player simulating an AI attack setup.<br />
<img src="/assets/uploads/files/1781026295679-screenshot-2026-06-09-125704.png" alt="Screenshot 2026-06-09 125704.png" class=" img-fluid img-markdown" /><br />
The Russian forces have been depleted to entice these attack movements by the AI. The Russians player purchased 1 transport that was placed in Karelia Sea Zone and 6 infantry in Russia. This will be the basic setup mostly used.<br />
The Germans AI will generally, in its simulated combat, take both Karelia S.S.R. and Caucasus. Because Karelia S.S.R. has a factory the Germans AI can use this territory for simulated purchase to place units. Units purchased this way but cannot be place fall to the unplaced unit's routine. Please note the bottom right of the above figure. The Germans have bought 9 infantry and 1 armour and these will all have been pre-placed in Germany. The factory, transport and 1 infantry are given to Germans via a trigger are considered unplaced units just like units bought in error as described above. Also, units given by purchaseNoPUs/"productionPerXTerritories" are considered unplaced units. A Human player will have no problems placing all 13 units. The AI will have no problems with the 10 purchase to place units as they all go to Germany as seen below in the non-highted units;<br />
<img src="/assets/uploads/files/1781029870209-screenshot-2026-06-09-125203.png" alt="Screenshot 2026-06-09 125203.png" class=" img-fluid img-markdown" /><br />
Unplaced units are broken down into 2 different categories, non-construction units and then the construction units. What must be understood here is that both groups follow the same rules for placement and since the production rule has not been changed all unplaced must be placed into territories with production or in a sea zone adjacent to a territory with production. As seen above the transport was placed in Central Mediterranean Sea Zone and an infantry in South Europe. The factory can only be placed in South Europe or Germany. Even though Karelia S.S.R. has a factory and can be used for purchasing units being conquered this turn means it cannot be considered for placement.<br />
That is the first rule that is different between the Human and AI player. A Human can place construction units in non-production territories. <strong>By rule</strong> the AI player cannot, all construction units must be placed into production territories.</p>
<p dir="auto">Cheers...</p>
]]></description><link>https://forums.triplea-game.org/topic/4348/rules-interpretation-for-placement-human-vs-ai</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 08:13:03 GMT</lastBuildDate><atom:link href="https://forums.triplea-game.org/topic/4348.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 09 Jun 2026 20:50:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Rules interpretation for placement Human vs AI on Wed, 10 Jun 2026 07:09:03 GMT]]></title><description><![CDATA[<p dir="auto">Is this what <strong>should</strong> happen?<br />
Components of this problem</p>
<p dir="auto">rulesAttachment has <strong>placementCapturedTerritory</strong>" value="true"<br />
This allows for the placement of units in the same turn as they were captured.</p>
<p dir="auto"><strong>Order of delegates in xml speak</strong><br />
A&amp;A style Purchase <strong>before</strong> Combat<br />
<strong>Purchase</strong>&gt; Combat move&gt;Combat&gt; Non-Combar move&gt; <strong>Place</strong>&gt; End Turn<br />
or<br />
New style Purchase <strong>after</strong> Combat<br />
Combat move&gt;Combat&gt; Non-Combat move&gt; <strong>Purchase&gt; Place</strong>&gt; End Turn</p>
<p dir="auto">For Purchase <strong>before</strong> Combat<br />
The AI <strong>tries</strong> to purchase what it thinks it needs based on its current TT and then Places them.<br />
If PlacementCapturedTerritory=true then it should <strong>re-evaluate</strong> its Purchases/Place based on its new TT gains, yes?  (As the gains might be better, closer to the enemy etc)</p>
<p dir="auto">Purchase <strong>after</strong> Combat<br />
If PlacementCapturedTerritory=true <strong>or</strong> false<br />
The logic is simpler, the AI purchases what it can place, yes?</p>
<p dir="auto">In the above mix, if the AI have been given units/factories from isAI/xml it should test for these <strong>first</strong> and not Purchase them,</p>
<p dir="auto">Is the above what should happen?</p>
]]></description><link>https://forums.triplea-game.org/post/78088</link><guid isPermaLink="true">https://forums.triplea-game.org/post/78088</guid><dc:creator><![CDATA[TheDog]]></dc:creator><pubDate>Wed, 10 Jun 2026 07:09:03 GMT</pubDate></item><item><title><![CDATA[Reply to Rules interpretation for placement Human vs AI on Wed, 10 Jun 2026 05:54:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/beelee" aria-label="Profile: beelee">@<bdi>beelee</bdi></a></p>
<p dir="auto">To sum up what WC is pointing out here - basically the AI is stupid here in that it tries to purchase units for territories it can't place in. And it is also unable to place unplaced factories because it tries to place them in territories with factories.</p>
<p dir="auto">This needs to be fixed on the engine level. Two fixes are needed:</p>
<ol>
<li>
<p dir="auto">When making purchases, the AI simulates it turn first and then uses that information to make its purchase. However, it then correctly needs to identify that it cannot place in conquered territories because right now it thinks it can.</p>
</li>
<li>
<p dir="auto">When the AI tries to place unplaced factories, it needs to use a different set of territories than those for regular units.</p>
</li>
</ol>
]]></description><link>https://forums.triplea-game.org/post/78085</link><guid isPermaLink="true">https://forums.triplea-game.org/post/78085</guid><dc:creator><![CDATA[VictoryFirst]]></dc:creator><pubDate>Wed, 10 Jun 2026 05:54:24 GMT</pubDate></item><item><title><![CDATA[Reply to Rules interpretation for placement Human vs AI on Wed, 10 Jun 2026 04:46:37 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wc_sumpton" aria-label="Profile: wc_sumpton">@<bdi>wc_sumpton</bdi></a> <a href="/post/78074">said</a>:</p>
<p dir="auto">So, the AI can purchase to place factories, but can still lose them because it can always try to purchase for captured territories even if they can't be placed there.</p>
</blockquote>
<p dir="auto">Not sure what all this means. Does new code need to be written for the AI not to do this ? Or does a new map property need to be added to the xml so one can turn it off depending on what game they're playing ?</p>
<p dir="auto">I'm not real clear on all the different rulesets, as it's been so long since I've played anything other than G 40.</p>
<p dir="auto">Anyway, I won't be of any help here but Good Luck for getting it corrected <img src="https://forums.triplea-game.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=b936044300b" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> I will ping <a class="plugin-mentions-user plugin-mentions-a" href="/user/panther" aria-label="Profile: panther">@<bdi>panther</bdi></a> for you, as he is a rules heavyweight.</p>
]]></description><link>https://forums.triplea-game.org/post/78080</link><guid isPermaLink="true">https://forums.triplea-game.org/post/78080</guid><dc:creator><![CDATA[beelee]]></dc:creator><pubDate>Wed, 10 Jun 2026 04:46:37 GMT</pubDate></item><item><title><![CDATA[Reply to Rules interpretation for placement Human vs AI on Wed, 10 Jun 2026 03:16:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wc_sumpton" aria-label="Profile: wc_sumpton">@<bdi>wc_sumpton</bdi></a> <img src="/assets/uploads/files/1781061410794-dstfp.gif" alt="dstfp.gif" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forums.triplea-game.org/post/78075</link><guid isPermaLink="true">https://forums.triplea-game.org/post/78075</guid><dc:creator><![CDATA[ubernaut]]></dc:creator><pubDate>Wed, 10 Jun 2026 03:16:55 GMT</pubDate></item><item><title><![CDATA[Reply to Rules interpretation for placement Human vs AI on Wed, 10 Jun 2026 02:44:47 GMT]]></title><description><![CDATA[<p dir="auto">The next change is pictured below;<br />
<img src="/assets/uploads/files/1781054769792-screenshot-2026-06-09-064442.png" alt="Screenshot 2026-06-09 064442.png" class=" img-fluid img-markdown" /><br />
No factories at the start of the game but factories are still needed for production. So, this will change Russians purchases to a single factory and it is placed in Russia.<br />
The AI German player may purchase 1 or 2 factories. It is still being given a factory, transport and infantry, all of which cannot be placed this turn.<br />
Prior to running tests this morning, I upgraded to version 2.7.15616. When running test on an older version, the AI German player favored Germany then East Europe, Karelia S.S.R. or South Europe. Now East Europe is highly favored followed by Karelia S.S.R. or South Europe. I have not seen a purchase for place factory for Germany with this new version. I have not dug too deep into the purchasing routine as I'm just trying to figure out the rules for placement. At first, I thought the rules would be similar for the placement of units given to a player whether AI or Human controlled. The placement of these types of units have completely different rules depending on the type of player.<br />
If "placementCapturedTerritory" is still active and the AI purchased to place in Karelia S.S.R. or Caucasus, then that unit is placed. If not active, then those factories purchased for those locations will become held unplaceable units. Held unplaceable unit are either destroyed at the end of placement or saved over until the next turn determined by how "Unplaced units live when not placed".<br />
So, the AI can purchase to place factories, but can still lose them because it can always try to purchase for captured territories even if they can't be placed there.</p>
<p dir="auto">Cheers...</p>
]]></description><link>https://forums.triplea-game.org/post/78074</link><guid isPermaLink="true">https://forums.triplea-game.org/post/78074</guid><dc:creator><![CDATA[wc_sumpton]]></dc:creator><pubDate>Wed, 10 Jun 2026 02:44:47 GMT</pubDate></item><item><title><![CDATA[Reply to Rules interpretation for placement Human vs AI on Wed, 10 Jun 2026 01:47:09 GMT]]></title><description><![CDATA[<p dir="auto">Now for a change up. This setup is exactly the same as above, the only change is the following:</p>
<pre><code>&lt;attachment foreach="$Players$" name="rulesAttachment" attachTo="@Players@" javaClass="RulesAttachment" type="player"&gt;
	&lt;option name="placementCapturedTerritory" value="true"/&gt;  
&lt;/attachment&gt;
</code></pre>
<p dir="auto">This will allow the Human player to place units into Karelia S.S.R. as well as the Karelia Sea Zone. The factory can go into Caucasus, but non-construction units cannot.<br />
For the AI player this does nothing. The AI was already allowed to purchase to place in Karelia S.S.R. and these units can be placed there but by rule, unplaced units cannot, even with "placementCapturedTerritory" their placement looks the same as above. The factory unit is still not placed.<br />
If a bunker unit is created:</p>
<pre><code>&lt;attachment name="unitAttachment" attachTo="bunker" javaClass="UnitAttachment" type="unitType"&gt;
	&lt;option name="attack" value="0"/&gt;
	&lt;option name="defense" value="2"/&gt;
	&lt;option name="hitPoints" value="2"/&gt;
	&lt;option name="movement" value="0"/&gt;
	&lt;option name="isConstruction" value="true"/&gt;			&lt;!-- place anywhere owned --&gt;
	&lt;option name="constructionType" value="Bunker"/&gt;
	&lt;option name="maxConstructionsPerTypePerTerr" value="2"/&gt;
	&lt;option name="constructionsPerTerrPerTypePerTurn" value="2"/&gt;
	&lt;option name="canOnlyBePlacedInTerritoryValuedAtX" value="1"/&gt;
	&lt;option name="canBeDamaged" value="true"/&gt;
	&lt;option name="canDieFromReachingMaxDamage" value="true"/&gt;
	&lt;option name="maxDamage" value="2"/&gt;
&lt;/attachment&gt;
</code></pre>
<p dir="auto">And 6 bunkers were given to Germans along with the factory, transport and infantry. The Human player can place all 6 bunkers. They could be placed 1 each in 6 different or stack 2 in 3 territories. The Human player has options the AI does not have. The AI can place 2 bunkers in South Europe and another 2 in Germany and that is all the bunkers it can place. This is by rule the AI player can only place in production territories it has owned since the start of their turn.</p>
<p dir="auto">Cheers...</p>
]]></description><link>https://forums.triplea-game.org/post/78072</link><guid isPermaLink="true">https://forums.triplea-game.org/post/78072</guid><dc:creator><![CDATA[wc_sumpton]]></dc:creator><pubDate>Wed, 10 Jun 2026 01:47:09 GMT</pubDate></item></channel></rss>