Battleship in RMI

K

KDawg44

Hello,

I am reimplementing my distributed battleship game in RMI (you may
remember me on here when I was doing it with Sockets a couple of weeks
ago).

SInce i am changing from Sockets to RMI, should I

a.) Allow a bunch of remote methods to be run or
b.) Allow a few methods to be run which in turn use my other methods
to check shot attempts locally at the server and client.

b seems like less work and would seem to use the connection the
least. is there a best practice? (I hope my question is clear).

Second, in my socket implementation, the server waits for a shot
attempt from the client, if it hits and has sunk all the ships then
the game is over but if not, then the server fires back, then goes
back to seeing waiting for the client's next shot.

How do I do this alternating shots with RMI?

Thanks very much for any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Java RMI questions and MyEclipse 8
Battleship 24
BattleShip Game App using Swing 1
"Battleship" style game 13
RMI in java 15
RMI Security Manager 5
RMI and Threading 2
RMI and untrusted clients... 4

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top