For module 5 in part 2 of the Coursera course, you have to implement a Jack application.
I tried implementing Boids (
https://en.wikipedia.org/wiki/Boids) in Jack, but very quickly ran into what I suspect is memory constraints (pretty difficult to debug).
I had the following classes: vector, boid, boid controller, interface controller and main.
Each boid has to calculate three vectors for each boid close to it (but to determine which boids are close, it has to calculate a distance between it and every other boid using vector subtraction): separation, alignment and cohesion. Each boid does in every update, and every vector is an instance.
I’m 99% sure I didn’t have memory leaks, and I’m attributing it to the total amount of memory available (16 bits) not being enough. Hence: it’s not really straightforward to implement boids in Jack (running on the Hack computer) in a way that’s memory efficient enough.
Am I on the right track, or am I making a mistake in my thinking?