Upvote/downvote! Vote for cars and that determines the tournament results before fitness is considered. Downvoting immediately removes that car from the mating pool. Remove too many and new chromosomes fill the pool

Smoother track that might actually be beatable. Twice as much torque on each wheel.

Added max framerate slider for 30-60 fps

2.0

INPUT/OUTPUT Cars (best car and current car). Copies directly into the clipboard. When a seed car is input it copies it directly into the population then crosses it over with each random member. The cars will look different depending on the maximum wheel number.

Choose the TERRAIN

Score is now max car reaches, not where it stops.

NEW STOP CONDITION: if car x-position does not change by 0.05 every 1/30th of a second for 4 seconds in a row its stalled. if its position is less than 10 it gets 2 seconds.

ELITE SELECTION - Copies the top 2 cars directly into the next generation with no crossover or mutation. Click the button to turn it off

Target score now shown by RED TRACK

TIMER counts up instead of target score display. No time limit

SPEED is now used to resolve ties in the score during tournament selection, if car reaches target score it is given target score exactly. Therefore when multiple cars reach the target score, the fastest is chosen most often to mate. Try the speedway track to breed the fastest car.

Tournament selection now chooses pairs for TOURNAMENTS RANDOMLY, meaning each car is not guaranteed to get into a tournament. I might increase the tournament size to 2*population size later to see if that helps.

Merged all the BUTTON LISTENERS into one button listener to make it faster. Also made the sliders into numerical steppers, also for efficency.

Extended the track PIECE SIZE of the default track (for efficiency) and made the slope a little steeper with more downslope.

TORQUE is now mg/wheelNum. Therefore more wheels = less torque per wheel. Seems more realistic.

Choose the POPULATION SIZE when you pick a track/ load a car

NEXT button to stop the current car, without downvoting it. Cars gets its score at the time