Overview
This prompt aims to guide developers in creating a comprehensive AI logic system for programming and coding applications. Programmers and educators will benefit from the structured approach and clarity in implementation details.
Prompt Overview
Purpose: This project aims to create an advanced AI logic system for programming game mechanics and decision-making processes.
Audience: The intended audience includes game developers and programmers interested in implementing AI systems in real-time environments.
Distinctive Feature: The system integrates state machines, tactical planners, and motion planners for comprehensive ground and aerial movement control.
Outcome: Successful implementation will enhance gameplay dynamics and provide robust AI behavior across multiple game variants.
Quick Specs
- Media: Text
- Use case: Generation
- Industry: Content & Media Creation, DevOps & CI/CD, Productivity & Workflow
- Techniques: Decomposition, Plan-Then-Solve, Structured Output
- Models: Claude 3.5 Sonnet, Gemini 2.0 Flash, GPT-4o, Llama 3.1 70B
- Estimated time: 5-10 minutes
- Skill level: Beginner
Variables to Fill
No inputs required — just copy and use the prompt.
Example Variables Block
No example values needed for this prompt.
The Prompt
Implement a comprehensive AI logic system that includes:
– State Machines
– Tactical Planners
– Motion Planners for both ground and aerial movements
This should encompass kickoff playbooks and rotations.
Additionally, develop mechanics modules such as:
– Aerial maneuvers
– Dribbling
– Wall interactions
– Recovery techniques
– Half-flips
– Wave-dashes
Include an internal PID control system and filtering logic for the **ControlSystem**.
Complete or create any missing utility modules (e.g., **utils/config**, **math_utils**, etc.), ensuring unified types and constants.
Provide stable offset handling for multiple game variants with fallbacks and live validation.
Build a complete test suite equipped with continuous integration sanitizers and coverage reporting.
Perform performance profiling targeting 60/120 Hz cycles, minimizing input latency.
Harden error handling with robust recovery paths and implement log rotation.
**Begin implementation immediately, focusing on educational clarity and thoroughness.**
# Steps
1. Design the state machine architecture to manage AI states efficiently.
2. Implement the tactical planner for high-level decision-making, including kickoff strategies and rotations.
3. Develop motion planners for ground and aerial navigation.
4. Create detailed mechanics modules:
– Aerial maneuvers
– Dribble techniques
– Wall interactions
– Recovery techniques
– Half-flips
– Wave-dashes
5. Implement the ControlSystem with internal PID controllers and filtering for smooth control.
6. Develop or finalize utility modules, ensuring type consistency and proper constant definitions.
7. Implement stable offset management for various game versions with fail-safes and real-time validation.
8. Write comprehensive unit and integration tests; set up CI pipelines with sanitizers and coverage tools.
9. Profile the system performance at targeted tick rates; optimize to minimize input latency.
10. Develop robust error handling and recovery workflows; implement log rotation for maintainability.
# Output Format
Provide well-structured, commented code snippets implementing each component.
Include brief explanations of design choices and usage examples where appropriate.
If the implementation is extensive, break it into logically separated modules with clear interfaces.
# Notes
– Focus on clarity for educational purposes.
– Assume the target environment is a real-time game AI pipeline.
– Use consistent coding standards and naming conventions.
Screenshot Examples
How to Use This Prompt
- Copy the prompt into your preferred coding environment.
- Review the requirements for AI logic system components.
- Break down tasks into manageable steps for implementation.
- Follow the output format for structured code snippets.
- Test each component thoroughly before integration.
- Focus on clarity and educational value in your code.
Tips for Best Results
- State Machine Design: Create a modular architecture to manage AI states, ensuring efficient transitions and scalability.
- Tactical Planner Implementation: Develop high-level strategies for kickoffs and rotations, integrating decision-making algorithms for optimal gameplay.
- Motion Planner Development: Design planners for both ground and aerial movements, focusing on fluid navigation and responsiveness to game dynamics.
- Comprehensive Testing Suite: Establish a robust testing framework with CI integration, ensuring code quality through continuous validation and performance profiling.
FAQ
- What is a state machine in AI?
A state machine is a computational model that transitions between different states based on inputs. - How does a tactical planner function?
A tactical planner makes high-level decisions, such as strategies for kickoffs and player rotations. - What are motion planners used for?
Motion planners facilitate navigation and movement, both on the ground and in the air. - What is PID control in AI systems?
PID control is a feedback mechanism that adjusts outputs based on proportional, integral, and derivative errors.
Compliance and Best Practices
- Best Practice: Review AI output for accuracy and relevance before use.
- Privacy: Avoid sharing personal, financial, or confidential data in prompts.
- Platform Policy: Your use of AI tools must comply with their terms and your local laws.
Revision History
- Version 1.0 (February 2026): Initial release.


