I am trying to make multiplayer an online Battleship game with java applets and i have some questions.
- I searched and read a lot and decide that the best way to make an online multiplayer battleship game is by using p2p. Client applets communicate with each other over datagram sockets. And there should be a server which the clients connect. This will show all clients that are connected and players can send invitation to other clients from list and start the game. When the game starts, the server transfers the messages between clients (the shots and where the battleships are placed) over datagramsockets. When user A sends a message to user B, server receives the message of user A and sends it to user B.
- How can i start the server side of this application? I saw some application which client side is coded as applets and server as application. On my computer, i can start the server by doubleclicking the jar file or running from Eclipse, then run the client applets from web browser(by using WAMP) or from Eclipse and it works perfect.