project.result.mp4
Welcome to the AI Car Simulation! This project uses Python and Pygame to simulate car movement using a NEAT (NeuroEvolution of Augmenting Topologies) neural network. The goal is to have AI-controlled cars navigate a track while avoiding collisions.
- Realistic car movement and rotation mechanics
- AI-controlled cars using NEAT
- Collision detection using pixel color
- Radar system for obstacle detection
- Customizable track and car graphics
- Clone the repository:
git clone https://github.com/AyhemKouki/AI-Car-Simulation.git
- Navigate to the project directory:
cd AI-Car-Simulation
- Install the required dependencies:
pip install pygame neat-python
- Run the simulation:
python main.py
Observe the AI cars navigating the track and adapting their strategies.
Car Class: Defines the properties and behaviors of the car, including movement, radar, and collision detection. Radar System: Uses a set of angles to detect obstacles by checking the pixel color at the radar endpoints. NEAT Algorithm: Evolves a population of neural networks that control the cars, optimizing their performance over generations. Contributing Contributions are welcome! If you have suggestions for improvements or features, feel free to open an issue or submit a pull request.