How nfleig/genetic-algorithm-battle-demo works
This Unity demo lets a user adjust two AIs’ settings and observe a battle between their armies. The README describes genetic algorithms as producing strategies and the battle’s outcome, but no source excerpts were provided; therefore, relationships below are limited to those documented capabilities. Script names identify additional runtime components, but their responsibilities and interactions cannot be verified from the available evidence.
Main entry points: AI.cs AI · AISettingsManager.cs AI Settings · GeneticAlgorithm.cs Genetic Algorithm · GameController.cs Game Controller
Components 10
AI Strategy
- AI Settings
Assets/Scripts/AISettingsManager.cs - Setting
Assets/Scripts/Setting.cs - AI
Assets/Scripts/AI.cs - Genetic Algorithm
Assets/Scripts/GeneticAlgorithm.cs
Battle Runtime
- Game Controller
Assets/Scripts/GameController.cs - Fighter Controller
Assets/Scripts/FighterController.cs - Nexus
Assets/Scripts/Nexus.cs
Presentation
- Camera Controller
Assets/Scripts/CameraController.cs - AI Label
Assets/Scripts/AILabel.cs
Other components
- Player
Connections 4
- Player → AI Settings: changes settings
README.md - AI Settings → AI: configures AIs
README.md - Genetic Algorithm → AI: produces strategies
README.md - AI → Game Controller: controls armies
README.md