How krishna7123/fruitgridpuzzle works
Fruit Grid Puzzle is a Unity grid game: the player uses keyboard or swipe controls to move, collects fruits and avoids bombs, then sees score-based win, draw, or loss feedback. The graph preserves the documented gameplay, counters, restart, and UI capabilities and maps them to source files named in the tree. Since no source excerpts were provided, relationships are limited to README-documented behavior; the UndoManager is shown as a component, but undo is documented as a future improvement.
Main entry points: GameManager.cs Score and counters · GridManager.cs Grid gameplay · InputManager.cs Keyboard and swipe · PlayerController.cs Player movement
Components 16
Player input
- Keyboard and swipe
Assets/Scripts/Input/InputManager.cs - Player movement
Assets/Scripts/Player/PlayerController.cs
Grid gameplay
- Grid gameplay
Assets/Scripts/Core/GridManager.cs - Fruit and bomb placement
Assets/Scripts/Core/GridManager.cs - Cell data
Assets/Scripts/Data/Cell.cs - Tile types
Assets/Scripts/Data/TileType.cs
Game state
- Game coordination
Assets/Scripts/Managers/GameManager.cs - Game state
Assets/Scripts/Data/GameState.cs - Undo manager
Assets/Scripts/Managers/UndoManager.cs - Score and counters
Assets/Scripts/Managers/GameManager.cs - Win, lose, draw
Assets/Scripts/Managers/GameManager.cs
UI and presentation
- Grid rendering
Assets/Scripts/UI/GridRenderer.cs - Cell display
Assets/Scripts/UI/CellView.cs - UI and restart
Assets/Scripts/UI/UIManager.cs - Game over UI
Assets/Scripts/UI/GameOverUI.cs
Other components
- Player
Connections 12
- Player → Keyboard and swipe: uses
README.md - Keyboard and swipe → Player movement: directs movement
README.md - Player movement → Grid gameplay: moves around
README.md - Grid gameplay → Fruit and bomb placement: places randomly
README.md - Player → Grid gameplay: plays on
README.md - Player → Score and counters: collects fruits
README.md - Player → Score and counters: hits bombs
README.md - Score and counters → Win, lose, draw: determines result
README.md - Score and counters → UI and restart: tracks counters
README.md - Win, lose, draw → Game over UI: shows result
README.md - UI and restart → Game coordination: restarts game
README.md - Undo manager → Game coordination: supports undo