I installed a PVC bridge between 2 betta tanks once... It took some time, but when they met, it became hilarious.
Short story long.
Once one had the courage to go up the tunnel and found the other tank. he thought he found paradise... 1 minute later he was fleeing from where he came. The owner didn't pursue in the tunnel, but made it a chore to surveil the newly found entrance. While the other hid in his tank for a couple days.
Then with time both became bolder but always respected the tunnel as the territory limit, still couldn't resist stepping on the others grass on regular basis.
They played cat and mouse like that for a while and one funny thing that happened is one day I came to the tank and they had switched side...
I felt like I had missed something.