Hey guys, this was a 2012 contest. Its goal was to create/find the best bot racer (the fastest bot to travel the circuits). The project was loading, but it had a ton of bugs and the collision detections have not been working properly, so I fixed them. But while I was fixing, I decided to re-code most of the project's structure, ended up fixing many bugs it had in the past, improved the menu, added the possibility to toggle and debug the bot sensors, and restart the analysis and race. With these changes it became easier to add/create new circuits. Also changed it so the bots were updated in a synchronous manner, in order to travel the track with the same tick rate. I've also improved a bit the orange bot (bot3), and remade the grey bot (bot4) from scratch as it was intended. Both orange and grey bots were improved versions of matfin's pink bot, so they had similar methods to find their ways around the circuits, although orange bot was faster, grey bot was more reliable across a larger variety of circuits, where sometimes orange bot failed to find its way. UPDATES: [ Apr 11th, 2020 ] Made some improvements to the orange bot analysis process, it ended up even faster and way more reliable across the circuits. [ Apr 17th, 2020 ] Created the yellow bot (bot5), which was based on matfin's dark blue bot (bot1), but it analyses the circuit before the race, in order to map sensor directions, which helped the bot better navigate the circuit. Basically whenever the sensor is touching outside the track with both distance and turning costumes, it adds a switcher on that location and restarted the analysis, whenever it touches the switcher, its sensor switches sides, in an attempt to make the corner from the inside, or at least to avoid the outside of the corner, effectively making it faster at cornering. [ Apr 20th, 2020 ] Created another bot (light blue, bot6). this bot was based on an idea I had back in 2012, basically instead of trying to find the inside of a curve by mapping waypoints close to the circuit walls, it runs the circuit backwards, by trying to find the longest possible straight until finding a wall, the process is repeated until it gets back to the starting position, it was an attempt to maximize exit velocity and make sharp curves a bit smoother. [ Jun 24th, 2020 ] Created 'track11', a left turn track with an inverted S on the final sector, simillar to 'track8'. Once again bot6 (Light Blue) won, there where however some surprises, the very stable bot4 (Grey) get's in front of the agressive bot3 (Orange) to get 3rd place, and even more impressive is bot2's (Pink) feat, which usually takes the last place, in this track it stayed in front of bot1 (Dark Blue). [ Jul 12th, 2020 ] Created 'track12', a long soft curve combined with a chicane on the right. No news in this one, bot6 (Light Blue) leads again, with bot3 (Orange) with a close 2nd. [ Sep 1st, 2020 ] Created and adapted bot7 (Dark Red) to the project, it over-shadowed my previous best bot (Light Blue) by a significant margin in most of the tracks. It's based on two breath-first searches with a heuristic function based on the number of frames the car is supposed to take while traveling a given vector, you can read more about the algorithm in my other project: [ Set 3rd, 2020 ] After some adjustments made to bot7 settings, it was able to surpass bot6 on one of the remaining tracks, now he's able to also win on track5. [ Sep 17th, 2020 ] Finally after some changes in bot7's main structure, it was able to win on all tracks! It can now find a very good path basically on any track I can possibly make. Now I'm left to make some improvements to the algorithm's performance and to the project in general [ Sep 23rd, 2020 ] Created tooltips for header menu buttons, also implemented a Turbo Mode detector, with it, I've created a modal, advising users that are not using Turbo Mode to activate it during the analysis phase. [ Oct 7th, 2020 ] Made some adjustments to bot7's analysis performance. Also created two more tracks, 'track13', an oval track with two "track4 like" chicanes at the top, and 'track14', a mini-monza based track, Dark Red easily wins on both tracks. [ Jun 21st, 2021 ] Created two more tracks 'track15' and 'track16', While my currently best bot (bot7) demolished 'track16', on 'track15' the race was way more intense, with the Yellow and Light Blue bots fighting against Dark Red bot for first place! [ Aug 24th, 2021 ] Major bug fixes and improvements to the looks of the project. New thumbnail, the instructions section was completely remade, with a better looking 'OK!' button, all circuits were remade in svg format, also added some nice looking grass in the off-road section, added shadows to the cars, and made the cars become ghosts the closer they are to the drivable dummy-car. [ Jul 19th, 2022 ] Finally created my last track 'track18', in which Dark Red bot easily won.
CREDITS TO: matfin http://scratch.mit.edu/projects/matfin/488620 P [ Bots ] Pink Car: matfin's AI Dark Blue Car: matfin's AI Grey Car: bestvitalic2's AI Orange Car: bestvitalic2's AI Yellow Car: bestvitalic2's AI Light Blue Car: bestvitalic2's AI Dark Red Car: bestvitalic2's AI Purple Car: bestvitalic2's AI [ Winners so far... ] Track1: Dark Red Car Track2: Dark Red Car Track3: Dark Red Car Track4: Dark Red Car Track5: Dark Red Car Track6: Dark Red Car Track7: Dark Red Car Track8: Dark Red Car Track9: Dark Red Car Track10: Dark Red Car Track11: Dark Red Car Track12: Dark Red Car Track13: Dark Red Car Track14: Dark Red Car Track15: Dark Red Car Track16: Dark Red Car Track17: Dark Red Car Track18: Dark Red Car Track19: Dark Red Car Track20: Dark Red Car Track21: Dark Red Car Track22: Dark Red Car Track23: Dark Red Car Track24: Dark Red Car Track25: Dark Red Car You can also drive the red dummy-car and try to beat the bots!