This site requires JavaScript, please enable it in your browser!
Greenfoot back

RcCookie's Comments

Back to RcCookie's profile

You can try to rework their decisions, the source code is right there. You could try to make a neural network that uses the three inputs and maybe two in 45 degree angles to output a value for each option(left, right, straight)
I have tried neural networks once, but failed;-) The ai uses raycasts; it checks the distance in every possible direction (left, right, straight) and selects the direction with the biggest distance. With the difficulty slider you basically adjust the frequency at which the ai checks the distances. Also, the update frequency is randomized
RcCookieRcCookie

2020/4/21

Thanks!
Can you show me the button source code?
I´ll see if I can fix this Thanks for that comment!
THIS IS A COPY!!! Original scenario: https://www.greenfoot.org/scenarios/23252
Doesnt work on my browser. What a shame:-(
Can‘t find it but thanks;-) My first upload