I'm trying to create a one on one, turn based board game in java. The basic game structure is already created and working if the players are on the same computer. I am now struggling to implement online multiplayer, because I have never done anything network-related before.
Each turn the player has to enter up to 9 decimal numbers (if a number is left out it is considered to be 0). Since I want to allow arbitrary precision I stored those numbers in an array of BigDecimals.
The way I imagine it to work, the two clients can connect directly to each other via IP, exchange messages each turn and get notified once the other client disconnects.
I have tried looking into several different tutorials, but they didn't work for me either because they implemented a server/client solution or because they didn't allow me to send the BigDecimal Objects. By now I am a little confused about the subject and unsure where to start implementing the network connection. That is why I don't even have any code to post here yet.