← Back to Projects
Python AI ● Complete 2024

Neural Network 2D Track Navigation

Used the NEAT genetic algorithm to train AI agents to navigate a 2D course while avoiding walls.

Python Genetic Algorithms Pygame

Overview

Implemented the NEAT (NeuroEvolution of Augmenting Topologies) genetic algorithm in Python to evolve neural networks that control agents navigating a 2D track. Agents learn to avoid walls and traverse a course through natural selection and mutation over generations.

How It Works

Each agent is controlled by a neural network whose structure and weights evolve over time. Agents that travel further along the track without hitting walls are selected for reproduction, gradually producing more capable navigators.

Key Highlights

  • Demonstrates evolutionary AI and genetic algorithms
  • Agents learn entirely through trial-and-error — no pre-programmed rules
  • Visual simulation built with Python