JoJo:
1. your revised flow diagram has a problem. The AI will always blob PGs early in the game because they are a T0 build. AI rarely builds kets.
2. Consider revising your logic to using the conditional: if x=y,(T2b,T2a).
3. What kind of flag does the AI use to initiate Wether the opponent is Wher or PE.
4. You are ignoring the early game FP dynamic built into Sov v1.6. You start with 35FP you can build T1 or T2 not both. It will take ~2-3 minutes to accumulate enough FP to build the other T(structure). At this time T2 first is not really an option.
1. Function goes like x = y(3PG, T2 ) if i correctly understood you

. So AI checks if you have t2 building then you are probably going with HTs so AI will make Tank Hunters.
2. Will try

.
3. Hm not sure what do you mean by "what kind of flag"? Flag can be 1 or 0, lets say 0-wehr, 1-PE. AI "looks" if there are PE players on other side.
AI as soviet can play vs 2PE (there are PE players on other side), 2 Wehr(no PE players on other side), 1PE 1Wehr.
4. Am not an expert player

can't always decide what is better, basic BO is from some other topic and goes to Tank Hunters or Strelky

.
5. What would you do if you were Soviet facing PE and lets say HT spam -> PE plays 2xPG - T2 - 2xIHT?
6. What if you don't have enough fuel for medium support?
7. What do you think is best to do after "Is vs PE"?
8. What would you do after 1st sniper?
Thanks for help.