Drunken ant

Sign in to test your solution.