A fun AI game where the user chooses a start, finish and obstacles and the bees learn to navigate it!
Occasionally used AI models to learn the fundamentals of certain functions of the algorithms.
A fun AI game where the user chooses a start, finish and obstacles and the bees learn to navigate it!
Occasionally used AI models to learn the fundamentals of certain functions of the algorithms.
Hey! Iāve made some more fun updates. :D
I mostly fixed some bugs and introduced some other fancy icons and a new menu! Iām working on UX things largely. Iāve come to the unfortunate realisation that my current algorithm (despite being fun to watch) isnāt very smart when it comes to multiple obstacles. Iāve had to limit it to 3 obstaclesā¦
Iām OFFICIALLY ADDING ANOTHER ALGORITHM! A more complex one. Iām planning a Q-learning algorithm. I currently donāt really know how to code one, but thatās what I plan to figure out over the next few logged hours! I plan to alter the home page to be a selection menu. The ārecommendedā option (Q-learning) and the fun option (genetic algorithm).
I really hope I can figure out how to make this work properly, as I think itād be a super fun improvement. Naturally, Iād have to limit it to a grid-based game, but I think that can also be fun! Iād love to hear what you think! :)
Also, this devlog is 1000 characters EXACTLY! Check for yourself.
Log in to leave a comment
Added a start menu. Working on improving it with labels. I also improved the icons and AI logic.
Havenāt coded in a while!
I also added the obstacle dragging system and the other things I planned to add in my previous devlog! :D

Log in to leave a comment
Finished the algorithm! It is much smarter now!
I didnāt copy-paste any code, but I asked Claude AI to help me diagnose the main issues. I learned how Svelteās reactivity is done, and now I know a lot more about handling arrays and DOM updates efficiently! :D
I learned to use {#key} in Svelte, which triggers updates upon a change in the selected variable, which makes 100 updates per frame, (6000 a second) into 1 per frame! It only updates when needed.
There are a few more optimisations
I plan to add, like the rounding of the ācuriosityā variable, since itās converting to a string each update, which is quite inefficient. I wanna make it stay a number. Also, I should REALLY start adding comments. Maybe using key-words for each part? That would help me find certain things. Coding using these indices and arrays can be quite inefficient. ONE more thing, you can see the art I made for the bee in the image below! If you donāt like it, please say so. I donāt know if I should keep it.
PS, I write all the devlogs, descriptions and READMEs by hand (no AI), so I apologise for any spelling or grammar mistakes! :D
Log in to leave a comment
I spent a while optimising the algorithm in various VERY effective ways! The agents respond well to distance from the target, and very well to arrival! Iāve also added a simple, small button panel for the user to change training values! I also added a curiosity and speed parameter.
In the image below, you can see the agents learning to navigate around the obstacle to the target! Iām next going to improve graphics, adding cute icons and sprites, theming the site around bees going towards their hive!
Log in to leave a comment
Started implementing AI algorithm. Using a genetic algorithm! Trying to figure it out. :D
The AI currently chooses a pre-determined set of random directions, and whichever one does best is recorded. Then, the others receive its genes alongside a randomiser so they donāt directly copy it.
Log in to leave a comment