This is the algorithm for the apple game in the GBA version. idk if it works in this version, but here it is in case it does. If the site doesn't load cuz the servers suck, here's the gist of it:
Super Ultra Great Delicious Wonderful Apple = S Hyper Miracle Sweet Gorgeous Beautiful Apple = H Angel Eternal Pure Fresh Elegant Apple = A Left, center and right will be abbreviated as L, C, and R respectively.
Follow the apple on the left for the first 2 moves. If it moves to the center first, and then to the right, you need to follow it to the end and see what its final position is. Otherwise, all you need is the first 2 moves.
Starting apple positions -> moves -> Final apple positions