THeVIperTOoth wrote: ↑
Wed Apr 10, 2019 12:30 am
Hey folks so i plan on creating a project using the raspberry pi as a server for communication between the computers, the game is a simple dice roll where if playerX gets 2 of the same numbers they win or if playerY gets it first they win, this is the easiest part the only difficulty I'm having is figuring out a way to designate computerA and computerB as the players along with actually setting up a server to run the java code. Sorry if this is a newbie kinda of thing just started heavily using the PI for coding . If anyone has any good recommendations for tutorials or any advice that would be great. Again i just need help with setting the servers up not the actual game itself. Thanks folks.
The networking part of creating a multiplayer networked game is somewhat difficult.
Instead of Java have you considered using one of the existing programmable multiplayer network game engines such as Dworkin's Game Driver
? DGD implements an object-oriented C-like programming language that is well suited for a multiplayer game such as you have described.