do you know the game battleship it’s like that but first you need to know about how to do encoders and decoders. first is decoders what that do is take a 2bit and up binary input (without 2s compliment) and put out a single output per section. 0000 input turns on the 0 output 0001 turns on the 1 output and 0010 turns on the 2 output and etc. with a 4 bit input you’ll get 16 outputs total each 16 outputs represent a number through 0-15.