How alvarojorgeg/ejercicios3 works
Overall Structure and Project Purpose
• The project consists of multiple self-contained exercises (ejercicio1 to ejercicio4), each focused on a different problem:
• Ejercicio 1 – Implements a Tower of Hanoi-like “Puzzle de la Pirámide” using classes such as Piramide and Juego.
• Ejercicio 2 – Calculates the determinant of a matrix with a focus on recursive and iterative methods, encapsulated in the Matriz class.
• Ejercicio 3 – Manages space ships (“naves”) with classes Nave and Rally to perform operations like sorting and searching.
• Ejercicio 4 – Handles various polynomial operations through a Polinomio class.
• Additionally, there is a global entry point (main GLOBAL.py) which can be used to execute all exercises sequentially.
Main Components
• Additionally, have a “Global Execution Manager” (or a “Main Global”) component that triggers the sequential execution of each exercise.
Identifying Relationships and Data Flow
• Input data or operations flow from the main script to its classes and, where applicable, note feedback from the classes back to main (like game results or computed determinants).
Architectural Patterns and Principles
• Although these are relatively small modules, the design follows a separation of concerns by splitting each exercise into its own folder with a clear distinction between “main” (the controller) and “classes” (the domain logic).
• Modularity: every exercise functions as an independent module which could be later extended or integrated into larger systems.