How jinjooyoung/2026_gamealgorithm_final works
This Unity project is a BFS-based maze tower-defense game. The likely player-to-result loop is building or solving a maze, then defending it against monster waves with towers; the tree also shows placement, combat, phase, and HUD subsystems. The README confirms only the game concept and BFS use, not runtime call relationships. Accordingly, the graph identifies the principal domain components but omits speculative connections; unsampled directories are used where the tree shows a subsystem but not its internal wiring.
Main entry points: GridData.cs Grid model · PiecePlacement.cs Piece placement · MonsterMover.cs Monster movement · StageGenerator.cs Stage generation
Components 23
Game flow
- Phase state
Assets/Scripts/Core/Game/PhaseMachine.cs - Player state
Assets/Scripts/Core/Game/PlayerState.cs - Game manager
Assets/Scripts/Manager/GameManager.cs
Maze and placement
- Stage generation
Assets/Scripts/Core/Stage/StageGenerator.cs - Grid model
Assets/Scripts/Core/Grid/GridData.cs - Maze controls
Assets/Scripts/Manager/MazeMouseInput.cs - Maze builder
Assets/Scripts/Manager/MazeBuilder.cs - Piece placement
Assets/Scripts/Core/Tetromino/PiecePlacement.cs - Placement rules
Assets/Scripts/Core/Tetromino/PlacementValidator.cs - Maze solver
Assets/Scripts/Core/Solver/MazeSolver.cs - BFS flow field
Assets/Scripts/Core/Pathfinding/BfsFlowFieldSolver.cs
Defense simulation
- Tower placement
Assets/Scripts/Manager/TowerBuilder.cs - Tower registry
Assets/Scripts/Core/Tower/TowerRegistry.cs - Wave spawning
Assets/Scripts/Core/Monster/WaveSpawner.cs - Monster movement
Assets/Scripts/Core/Monster/MonsterMover.cs - Monster occupancy
Assets/Scripts/Core/Monster/MonsterOccupancy.cs - Tower attacks
Assets/Scripts/Manager/TowerAttackSystem.cs - Target selection
Assets/Scripts/Core/Combat/TargetSelector.cs
Player interface
- Game HUD
Assets/Scripts/UI/DebugHud.cs - Phase controls
Assets/Scripts/UI/PhaseUIController.cs - Result popup
Assets/Scripts/UI/ResultPopup.cs - Grid display
Assets/Scripts/Grid/GridView.cs
Other components
- Player
Connections 14
- Player → Maze controls: controls maze
- Player → Tower placement: places towers
- Stage generation → Grid model: initializes
- Maze builder → Piece placement: places pieces
- Piece placement → Placement rules: checks placement
- Maze solver → Grid model: solves maze
- BFS flow field → Grid model: uses BFS
README.md - Wave spawning → Monster movement: spawns
- Monster movement → Monster occupancy: updates occupancy
- Tower attacks → Target selection: selects targets
- Player → Phase controls: uses controls
- Game HUD → Player: shows status
- Grid display → Player: shows grid
- Result popup → Player: shows outcome