Should I use the multi-player RMI game for Java?

I am creating a game on a monopoly in Java, and I want it to be able to support games on the network (the fact is that I and my friends in the USA can play).

The network is a whole area of ​​programming that I have not yet entered, so it was difficult for me to decide how to remove it. In general, I felt that the right way to work would be to have a server application with all the Monopoly game code, and then the application client using only the GUI with remote method calls.

Is RMI too complicated for this project or is it the best way to continue? Do you have any suggestions or tips for me?

Update: this game will be 100% Java. Therefore, don’t worry about clients installing Java. Also, it would be great to get some tips on using RMI.

+3
source share
2 answers

RMI is not a complicated thing, it's the other way around.

It allows you to develop a game protocol without worrying about objects Messagepassing between servers and clients with long chains in order to check which message it is and what to do.

, RMI, - ( ), , iWantToMoveThere(position) iWantToBuyLand(where) .. , , procotol. XML Java , .

RMI , -, , , , .

, : RMI , , , . RMI , TCP-, , . 1k 7-8

+13

, . ? 100% - Java-, - , jquery/Ajax html5.

, , RMI , .

0

Source: https://habr.com/ru/post/1750823/


All Articles