How juligassibe/tps-ia2 works
This repository is a collection of coursework exercises; the most integrated product is TP3/Ej3, a Pygame dinosaur game with manual, image-capture, TensorFlow, and genetic-training modes. The graph follows its game loop, AI, obstacles, and persisted training progress, while also representing substantial standalone exercise scripts. Connections for unsampled exercises and model-building code are omitted because their runtime relationships are not evidenced in the excerpts.
Main entry points: main.py Game loop · Obstacle.py Obstacle base · Dinosaur.py Dinosaur · Bird.py Bird obstacle
Components 22
Game runtime
- Game loop
TP3/Ej3/main.py - Dinosaur
TP3/Ej3/Dinosaur.py - Cloud
TP3/Ej3/Cloud.py - Obstacle base
TP3/Ej3/Obstacle.py - Bird obstacle
TP3/Ej3/Bird.py - Small cactus
TP3/Ej3/SmallCactus.py - Large cactus
TP3/Ej3/LargeCactus.py - Image capture
TP3/Ej3/ImageCapture.py
AI and training
- Neural network
TP3/Ej3/NeuralNetwork.py - Genetic training
TP3/Ej3/Genetic.py - Progress persistence
TP3/Ej3/SaveLoad.py - TensorFlow model builder
TP3/Ej3/BuildTensorflowModel.py
Other exercises
- TP1 A
TP1/tp1a.py - TP1 B
TP1/tp1b.py - TP1 C
TP1/tp1c.py - TP1 D
TP1/tp1d.py - TP2 implementation
TP2/implementacion juli.py - TP2 implementation
TP2/implementacion_nahu.py - TP3 exercise 1
TP3/3.1.py - TP3 exercise 2
TP3/Ej2.py - TP3 model builder
TP3/BuildTensorflowModel.py
Other components
- Game user
Connections 13
- Game user → Game loop: chooses mode
TP3/Ej3/main.py - Game loop → Dinosaur: updates and draws
TP3/Ej3/main.py - Game loop → Cloud: updates and draws
TP3/Ej3/main.py - Game loop → Bird obstacle: spawns and updates
TP3/Ej3/main.py - Game loop → Small cactus: spawns and updates
TP3/Ej3/main.py - Game loop → Large cactus: spawns and updates
TP3/Ej3/main.py - Game loop → Genetic training: updates population
TP3/Ej3/main.py - Game loop → Image capture: captures input
TP3/Ej3/main.py - Dinosaur → Neural network: inherits from
TP3/Ej3/Dinosaur.py - Bird obstacle → Obstacle base: inherits from
TP3/Ej3/Bird.py - Small cactus → Obstacle base: inherits from
TP3/Ej3/SmallCactus.py - Large cactus → Obstacle base: inherits from
TP3/Ej3/LargeCactus.py - Genetic training → Progress persistence: saves and loads
TP3/Ej3/Genetic.py