Skip to content

Release v1.0

Choose a tag to compare

@AppleSaph AppleSaph released this 22 Mar 22:42
· 12 commits to master since this release
657a3d9

First release of BattleShipsClient library. Only receiving and sending messages are currently implemented.

You can connect to the server and send and receive commands using the following example code

    BattleShipsClient.connect("localhost", 55555, "Saph");

    BattleShipsClient.addListener(new IListener() {
        @Override
        public void onMessageReceived(String message) {
            System.out.println(message);
        }
    });

    BattleShipsClient.sendCommand("MOVE~10~12");