How alvarojorgeg/ejercicio-algoritmos works
Main Components
• Component for Ejercicio 1 – “Movimiento Caballo”
• Main module: ejercicio1/main.py (entry point for execution)
• Business logic: ejercicio1/clases/logica.py (contains the MovimientoCaballo class with the movimientos_validos method)
• Component for Ejercicio 2 – “Problema de las N-Reinas”
• Main module: ejercicio2/main.py (entry point for execution)
• Business logic: ejercicio2/clases/logica.py (contains the NReinas class with métodos such as resolver, colocar, and es_valido)
• Global Component Consideration:
• There is a “main GLOBAL.py” file at the repository root which might be used for orchestrating or testing the overall functionality, although its purpose is not explicitly explained in the README.
Depicting Relationships and Interactions
• Separate application flows – one for each exercise.
• Create distinct blocks for Ejercicio 1 and Ejercicio 2:
Architectural Patterns and Design Principles
• Simple modular separation where each exercise is independently executable.
• Use of separation of concerns: main modules handle execution and user input, and the “clases” directories encapsulate the business logic.
• That the design follows a basic layered architecture even though it’s a command-line Python application; this might be useful when discussing how responsibilities are organized.
Relevant Technologies and Frameworks
• This project is implemented entirely in Python (requires Python 3.10 or higher).