Skip to content

DanielfQo/Algoritmo-Genetico-Carro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

self-driving-car

Little self learning racing car made in python and a genetic algorithm implementation. It's mainly made with Pygame and NEAT.

Requirements

  • Python 3
  • Python package manager (pip)

Installation

Use the package manager pip to install the requirements.

pip install -r requirements.txt

Usage

  1. Head to simulation folder
  2. Run python main.py

How to change the amount of sensors

Quick note: The amount of sensors can only be: 3, 4, 5, 9 or 11

  1. Go to simulation folder
  2. Edit the file .env and change the value of NUM_SENSORES to how many sensors you'd like
  3. Save changes and close the file
  4. While still in the folder, edit the file config-feedforward.txt
  5. Go to line 48 and change the value of num_inputs to match the amount of sensors in step 2
  6. Save changes and close the file
  7. Run python main.py

How to change the map

Quick note: The map can only be 1, 2 or 3. 1 is the easiest map, meanwhile 3 is the hardest.

  1. Go to simulation folder
  2. Edit the file .env and the value of MAP to the difficulty of the map you'd like
  3. Save changes and close the file
  4. Run python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy