Hey guys, it’s been a while since I’ve stopped by. The new forums look great!
I have a question about writing a networked board game. I’ve been looking into doing my network code via NIO, but several problems arose, including an inability to find information on it, and hearing that it has a lot of annoying bugs. So, I figured my best bet would be to ask you guys, since you know what you’re doing.
I’m writing a board game that will support 2-8 players, and will need to be able to send objects (or at least data about the object) to other players. I also need to implement a chat feature. Reliability in regards to data sent/received is an important factor. So, here are my questions:
Which is more suited to my project, NIO, or IO+Net?
Should I use TCP/IP or UDP for this project? (I’m thinking TCP will be required, but I’m not sure how it works with a P2P setup.)
Is Peer-to-peer or Client/Server the best approach? (I want people to be able to connect to other players without a need for a central server.)
Thank you for any guidance you can give me!