Version: 1.0.0
Category: Gameplay Patterns
Status: Stable
This document defines common gameplay strategy patterns for AI agents. These patterns represent proven approaches to resource management, combat, expansion, and overall gameplay optimization.
Purpose: Secure resources by refining ore immediately.
Pattern:
{
"pattern": "resourceSecurity",
"workflow": [
{
"action": "mine",
"result": "oreStored"
},
{
"action": "refine",
"immediately": true,
"reason": "Ore can be stolen, Alpha Matter cannot"
},
{
"action": "convert",
"when": "needed",
"reserve": 0.2
}
],
"principle": "Always refine ore to Alpha Matter immediately to prevent theft"
}
Implementation:
Purpose: Maintain online status and sufficient power capacity.
Pattern:
{
"pattern": "powerManagement",
"workflow": [
{
"action": "queryPower",
"frequency": "continuous"
},
{
"action": "calculateCapacity",
"formula": "(capacity + capacitySecondary) - (load + structsLoad)"
},
{
"action": "maintainOnline",
"condition": "availableCapacity > 0",
"fallback": "reduceConsumption"
}
],
"principle": "Stay online by maintaining power capacity above consumption"
}
Implementation:
Purpose: Verify all requirements before building.
Pattern:
{
"pattern": "buildRequirements",
"checklist": [
{
"requirement": "playerOnline",
"check": "powerStatus.playerOnline == true"
},
{
"requirement": "fleetOnStation",
"check": "fleetStatus == 'onStation'",
"note": "Required for planet building"
},
{
"requirement": "commandShipOnline",
"check": "commandShip.status == 'online'"
},
{
"requirement": "sufficientPower",
"check": "availableCapacity >= (buildPower + passivePower)"
},
{
"requirement": "availableSlot",
"check": "planetSlots[slotType] > 0"
},
{
"requirement": "buildLimit",
"check": "currentCount < maxPerPlayer"
}
],
"principle": "Verify all requirements before attempting to build"
}
Implementation:
Purpose: Optimize mining operations for maximum efficiency.
Pattern:
{
"pattern": "miningOptimization",
"workflow": [
{
"action": "chart",
"target": "resourceRichPlanets"
},
{
"action": "buildExtractor",
"priority": "highOrePlanets"
},
{
"action": "monitorMining",
"frequency": "continuous"
},
{
"action": "refineImmediately",
"priority": "high"
},
{
"action": "convertWhenNeeded",
"reserve": 0.2
}
],
"principle": "Mine efficiently, refine immediately, convert strategically"
}
Implementation:
Purpose: Prepare for combat operations.
Pattern:
{
"pattern": "combatPreparation",
"workflow": [
{
"action": "scout",
"target": "enemyPlanets"
},
{
"action": "assess",
"evaluate": [
"enemyDefenses",
"enemyForces",
"requiredForces",
"risk"
]
},
{
"action": "prepare",
"ensure": [
"sufficientPower",
"forcesReady",
"playerOnline"
]
},
{
"action": "execute",
"type": "attack|raid|defend"
}
],
"principle": "Scout, assess, prepare, then execute"
}
Implementation:
Purpose: Build and maintain defenses.
Pattern:
{
"pattern": "defense",
"workflow": [
{
"action": "buildDefenseCannon",
"priority": "high",
"limit": 1
},
{
"action": "buildBunkers",
"where": "oreStoragePlanets"
},
{
"action": "deployCombatStructs",
"where": "valuablePlanets"
},
{
"action": "monitor",
"frequency": "continuous"
}
],
"principle": "Build defenses before expanding, maintain defenses continuously"
}
Implementation:
Purpose: Expand territory strategically.
Pattern:
{
"pattern": "expansion",
"workflow": [
{
"action": "explore",
"when": "currentPlanetComplete"
},
{
"action": "chart",
"target": "newPlanets"
},
{
"action": "assess",
"evaluate": [
"resourceValue",
"strategicValue",
"defenseNeeds"
]
},
{
"action": "claim",
"priority": "highValuePlanets"
},
{
"action": "buildDefenses",
"immediately": true
},
{
"action": "buildInfrastructure",
"after": "defenses"
}
],
"principle": "Explore, assess, claim, defend, then build"
}
Implementation:
Purpose: Execute complete gameplay loop.
Pattern:
{
"pattern": "5XFramework",
"phases": [
{
"phase": "explore",
"actions": [
"chartPlanets",
"identifyResources",
"locateEnemies"
],
"next": "extract"
},
{
"phase": "extract",
"actions": [
"mineOre",
"refineToAlphaMatter",
"convertToWatts"
],
"next": "expand"
},
{
"phase": "expand",
"actions": [
"claimPlanets",
"buildInfrastructure",
"growInfluence"
],
"next": "exterminate"
},
{
"phase": "exterminate",
"actions": [
"defendAssets",
"attackEnemies",
"gainResources"
],
"next": "exchange"
},
{
"phase": "exchange",
"actions": [
"tradeResources",
"buyEquipment",
"sellExcess"
],
"next": "explore"
}
],
"principle": "Follow 5X Framework for complete gameplay loop"
}
Implementation: