Skip to main content

Module ai_opponent

Module ai_opponent 

Source
Expand description

AI opponent with policy/value networks, adaptive difficulty, and playstyle tracking.

Structs§

AIBrain
AI brain with policy and value networks.
AIParameters
Parameters controlling AI behavior.
AdaptiveAI
Adaptive AI that blends optimal and random actions based on difficulty.
ExperienceBuffer
Buffer for storing experience tuples for learning.
GameState
Compact game state encoded as a tensor.
PlaystyleTracker
Tracks player behavior patterns over time.

Enums§

Action
Possible actions for the AI opponent.

Functions§

counter_strategy
Determine counter-strategy parameters based on observed playstyle.