Gaston Tarry studied mathematics at secondary school in Paris and joined the civil service. He spent his whole career working in Algeria.
He was interested in geometry and published numerous articles in various journals from 1882 until his death. He did extensive work on magic squares and on number theory.
He is best known for his work on Euler's 36 Officer Problem, proving that two orthogonal Latin squares of order 6 did not exist.
He also published an algorithm for exploring mazes which is
called after him.