The bluegammon.io package defines common behaviour for setting up a remote game, and contains one implementation of this using bluetooth.

Concepts and Structures

There are three central classes in this package:

Class diagrams

A class diagram over a fully setup distributed game is depicted below:

Here, the RemotePlayer receives events via its InputStream. The PlayerListenerProxy sends all events from PlayerListener via its OutputStream.