3a8b2efd-8df2-4277-9336-5d97408d6574

This commit is contained in:
cdemeyer-teachx
2025-08-13 23:27:08 +00:00
parent 77cd457a50
commit 7a4a9be611
19 changed files with 1003 additions and 1009 deletions

38
src/README.md Normal file
View File

@@ -0,0 +1,38 @@
# Source Directory (`src/`)
This directory contains all C++ source files (.cpp) for the Pokemon battle simulator.
## Planned Structure
```
src/
├── core/ # Core battle engine
│ ├── battle.cpp # Main battle logic
│ ├── pokemon.cpp # Pokemon class implementation
│ ├── move.cpp # Move system
│ └── type.cpp # Type effectiveness
├── data/ # Data loading and management
│ ├── loader.cpp # Data file loading
│ └── validator.cpp # Data validation
├── ai/ # AI battle strategies
│ ├── random_ai.cpp # Random move selection
│ └── minimax_ai.cpp # Minimax algorithm
├── utils/ # Utility functions
│ ├── random.cpp # Random number generation
│ └── stats.cpp # Stat calculations
└── main.cpp # Entry point (if building executable)
```
## Design Principles
- **Performance First**: Optimized for speed and memory efficiency
- **Modular Design**: Clear separation of concerns
- **Data-Driven**: Pokemon data loaded from external files
- **Testable**: Each component designed for unit testing
## Key Components
- **Battle Engine**: Core simulation logic
- **Pokemon System**: Stats, types, moves, status effects
- **AI Framework**: Pluggable AI strategies
- **Data Management**: Efficient loading and caching