Sahil's Blog

Hi, and welcome to the blog! Ant Game and Searching AI Update - I finished up (most) of the ant AI They can now avoid death, and eat food. I also added a simulation time variable, so you can speed up the sim (for anyone who knows how to use INSPECT) Searching Update - Alphabetizing The search bar results are now alphabetized, and have a bit of space in between each other. It's a small change, but is a lot easier when searching for something. Of course, you can just . . .

search the whole name . . .

- Sahil, 7.49 AM EDT, September 6, 2025 Ant Game AI Update - the AI is now partially implemented. Instead of needing to match directions, it'll just go away. I'm deciding between bouncing away, going in a completely different direction, and just rerolling the ant's direction. Bouncing makes it look less natural, but they learn quicker. Rerolling makes learning slower, but it looks more natural. All in all, I think I might reroll the x/y and bounce the other one - which one has what done to it will be random - Sahil, 12.54 AM EDT, August 30, 2025 Ant Game So, how should the AI work? Well, as of now, I've only started working on the death avoidance AI How it's supposed to work is there's a death map, with each spot having a set of data for each ant that died there. What spot they were on their 10th frame, 20th, etc, and the direction it was going for each of those spots. So, if an ant is within a certain distance of one of those spots and matches the direction, it'll 'reroll' its direction. - Sahil, 5.58 PM EDT, August 28, 2025