Wednesday, May 20, 2026

🎉 New version of Blitkrieg Stratagem Chooser

Barely a moment after sharing the program, I decided to immediately tackle a few personal annoyances:

  • I decided to let my coding style freak flag fly  That involved:
    • slight reorganization of the code to fit my tastes, including moving some bode into GOSUB routines
    • some "strategic" use of emojis here and there to help me quickly spot certain particular things
    • naming conventions for my GOSUB routines (I like to start them with an alphabetic character followed by a three digit number, and an emoji) 
  • I added the ability to, at any time, copy the current A.I. Turn statistics to the clipboard, which you can then paste anywhere of use
    • I figured, if the program is presenting that info, might as well make it possible to "export" that info via the no fuss no muss approach that is making use of the clipboard.
    • I pasted sample output at the bottom of this post
  • Because I needed different actions when clicking/touching the screen:
    • I modified the program to require clicking a defined area of the screen related to getting the stratagem for the A.I. Bot's Next Turn
    • I added another defined area of the screen related to sending game statistics to the clipboard
  • I reconsidered my use of colors in the bottom half of the screen to keep usage of color to a minimum (as in only for those very important things we really want to highlight)
Compare the screenshot of today's new version to the screenshot of the previous version found in the earlier blog post.



Sample stats copied to the clipboard (best formatted with a fixed font after pasting):

Statistics:
    BigGun: 4
    CounterAttack: 4
    EconomicWarfare: 2
    ForTheGlory: 4
    RapidDeployment: 3
    ResearchAndDevelopment: 6
    Secure: 2
    SteamRoll: 6

Turn  Stratagem
----  ---------
   1  CounterAttack
   2  EconomicWarfare
   3  ForTheGlory
   4  BigGun
   5  SteamRoll (BigGun)
   6  ResearchAndDevelopment
   7  ForTheGlory
   8  EconomicWarfare
   9  CounterAttack
  10  Secure
  11  CounterAttack
  12  ResearchAndDevelopment
  13  CounterAttack
  14  ForTheGlory
  15  SteamRoll (ForTheGlory)
  16  RapidDeployment
  17  SteamRoll (RapidDeployment)
  18  Secure
  19  ResearchAndDevelopment
  20  SteamRoll (ResearchAndDevelopment)
  21  BigGun
  22  SteamRoll (BigGun)
  23  ResearchAndDevelopment
  24  SteamRoll (ResearchAndDevelopment)
  25  RapidDeployment


No comments:

Post a Comment

🎉 New version of Blitkrieg Stratagem Chooser

Barely a moment after sharing the program, I decided to immediately tackle a few personal annoyances: I decided to let my coding style freak...