There is probably another way to achieve what I want without connecting pins to each other, so I will explain the scenario:
I am trying to build an Arduino based Enigma Machine. The cryptography is working fine, it runs from the serial monitor. Now I want to make the interface more real.
The original machine has a plugboard: 26 terminals (labeled from A to Z) where you can connect a cable from one letter to another, and the user can make up to 10 of these connections.
I am stuck in this part. How could I do it electronically? How to tell the microcontroller if a pin is connected to any other pin?
If I assign each terminal to a separated pin on the board, I can't have these pins in output and input mode at the same time.
My first idea was to make an array of resistors to make uniques associations and read the different analog values, but it is impractical.
I also tried to draw a logic circuit to read exact associations, but also doesn't work.
I know it can be done with an Arduino Mega, as there are replicas being sold online based on this board. Is there any other hardware suitable for the situation? I wiil be glad to hear.