How pablousky4/programacion_lineal works
Project type and purpose
• From the file tree and README, this is a pure-Python, open-source tool/library (no web frontend or database) that models resource‐based unit power, likely as part of a linear-programming demo or educational game.
• Key purpose: load resource classes (Comida, Madera, Oro), load unit classes (Soldados, arqueros, espadachines, jinetes), compute “Poder” (power) via Poder.py, orchestrated by main.py.
File structure
• Top level:
• main.py – entry point (CLI or script)
• Poder.py – core computational logic (power calculation)
• requirements.txt – Python dependencies
• Package “Recursos/” (domain model for resources)
• Comida.py, Madera.py, Oro.py – one class each, implementing resource properties
• recursos.py – helper functions or aggregate class for resources
• Package “Unidades/” (domain model for units)
• Soldados.py, arqueros.py, espadachines.py, jinetes.py – each defines one unit type
README for additional insights
• The README only links to the GitHub repo and names the project (“programacion_lineal”).