- - HOW TO USE - - This AI bug uses random turns to eventually make it to the end. It tracks its progress and as long as it makes correct turns it records them. This project is not very large, nor is it complicated, but it is my first AI learning project. So, hope you like it and please give me suggestions as to other projects / improvements I should make. And obviously for a project like this: RUN IN TURBO MODE! (Shift+T+Green Flag) General How to Use: Click the green flag to start. Draw with your mouse any line starting at the black dot. Then click start. The bug will attempt to follow that path and learn from its errors. Restart: Restarts the list of turns and essentially only use this if your bug is continually not advancing. Buffer slider: Changes how many moves the bug regards as "incorrect" when it fails. If you decrease this, it might take longer for the bug to find its way out of a white area. Increasing will mean that it will delete a lot of recent code and get set back a lot for the next run. Turn Amount: Changes how big of a random number the bug will generate. Higher numbers will increase the ability to make large turns of 120 degrees or more, but your bug will fail a lot and move around a lot. Speed: Changes how far your bug moves in between turns. NOTE: Do NOT change this in the middle of a run, always adjust before the start. Lower speeds will mean more accuracy, higher speeds will mean faster trials. Number of Turns: Shows the number of turns that the bug will make per run. Runs: The total number of runs the bug has made. Slight bug as clicking restart won't reset the runs number, but I will fix that.
It was fun to make this project. I hope that everyone likes it! Version 1.0: 8 Jan 2018.