Ask coding questions

← Back to all posts
Why do all the values come out as five even iff i change them?(javascript)

Im making a Genetitc Algorithm (to learn more about it click here )and im trying to determine the fitness value but when i do they all come out as 5 and im stumped as to why so pls can someone help my code is here:

also you should use the console because i havent set up graphics yes also in the graphics it says that the fitness value is "0" so i dont know why

xxpertHacker (865)

I believe that your implementation is terribly off.

Did he ever make a video about how he implemented some of the code?