A similar to what I was thinking, just different flags. I didn't learn maritime flags, but did learn flag semaphore. Not that I could do it now, but it would come back.
Flag Semaphore - Online Decoder, Encoder, Translator
Tool to decrypt/encrypt with semaphore flags. The semaphore alphabet is a visual communication system using hand-held flags by a standing man.
www.dcode.fr