I am trying to program an ascii compass for a text adventure. I found something like I want to do at this url:
https://codereview.stackexchange.com/questions/207997/m