Academic / Java
Urban Farming Simulator
OOP Rooftop Farm Management Sim

About this project
Text-based rooftop urban farm management simulation modeling crop biology, seasonal weather, and market fluctuations using SOLID principles, encapsulation, and polymorphism. Built with a 3-person team.
The problem
Running a rooftop farm in a city means balancing crop biology, weather, water and money at once. It makes a good test of object-oriented design.
Approach
A text-based Java simulation built by a team of four. Crop classes encapsulate growth time and water needs for species such as lettuce and strawberries, and polymorphism lets each crop respond to conditions in its own way. A weather system simulates seasonal and daily changes, a market system makes prices and demand fluctuate, and a resource system tracks water reservoirs and cash, ending the game on bankruptcy. The design follows SOLID principles so new crops or farming techniques can be added without changing existing classes.
Results
A playable management sim where each day forces a trade-off between spending, watering and selling, built as a team exercise in encapsulation, polymorphism and SOLID design.
- Category
- Academic / Java
- Built by
- Jeyadev R
