OK, the input is specially designed such that the starting row and column are all valid spots, and there's a few open diagonals cutting off the corners. Presumably, the values are chosen such that the Manhattan distance will put you on one of those diagonals, ideally reaching just to the edge of a repeating tile.
I recently found some emeralds while searching in a cave for some diamonds. Other than creating an emerald block, what other purposes do the emeralds serve?
Not sure what version MCPE is at, but in future editions they are used for villager trading, and emerald blocks are used for beacons. Other than that, not much. — BenSep 30, 2014 at 1:06
Just to confirm: This question is about Minecraft Pocket Edition, i.e. the mobile version. Do you know if there has been an update? i.e. does your answer now apply to the Pocket Edition? — Robotnik ♦Mar 3, 2015 at 6:51