I'm thinking about using actors for a simple Asteroid-like game written in Scala and Java2D, which can be played by two players in a cooperative mode.
Both players can control their own ship on a shared playing field, where asteroids float through the space.
I wonder if actors are the right tool to implement the network elements between both players, like position updates or the destruction of an asteroid.
What would be necessary to implement it? What would be the hard parts? I fear that I will have problems with keeping them both in sync...
Is there a better solution available?
EDIT:
I don't plan on doing any fancy stuff regarding firewalls or NAT... I thought of having a small "server" to which both clients connect. (In reality one client will just start up the server and run it on the same pc.)
Both clients will connect to it, preferably both with a remote actor, so that I don't have to special case the remote/local case.
I have no problems with going the P2P route, if it is easier. The demands are fixed and I never have to plan for the case of "we need a 64 player game!!!".