At its very core, Agario is a game of patience. You either go in for the risky kill, or play it safe and stay small. In many ways, it is a representation of human nature.
What it does
Intelligario is an Agario clone that uses computer algorithms to figure out where to go and what to kill. More interestingly, it allows human input through the live adjustment of an "aggression" factor, telling the AI if it should play it safe or blaze a path of glory.
How we built it
Challenges we ran into
Accomplishments that we're proud of
Furthermore, there was a vast amount of math involved in the project. Apart from the constant distance calculations, our code both effortlessly projected the 250x250 grid onto a larger monitor and simplified target waypoints. The latter is particularly interesting - Dijkstra's algorithm, when approximated, generates multiple waypoints in a general direction. This presented two major problems: A, it resulted in increased computational workload, and, B, it caused our blob to double back. Why? Since the dijkstra was run asynchronously, the outputted results were actually based on where the blob was a few moments ago. This was obviously not what we wanted, so we devised a brilliant but simple solution - compare the slopes between adjacent waypoints and remove the ones that lie on a similar line.
We are also proud that we slept a lot!
What we learned
What's next for Intelligario
Maybe we'll become viral, maybe we won't. Either way, this was a fun experience!