Yes it is technically an algorithm. But it is actually fun to try and code algorithms for games. Try it.