Ask coding questions

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

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: https://replit.com/@JULIODIAZ1/Genetic-Algorithm

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

Comments
hotnewtop
xxpertHacker (865)

I believe that your implementation is terribly off.

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