Repository navigation
In this release, the entire module has been refactored. We've moved away from static methods and instead now force the student to implement the abstract methods found in the BattleShipsClient class. The client automatically parses the incoming messages into the relevant methods that the student can implement.
Just add the BattleShipsClient-1.1.jar and BattleShipsClient-1.1-sources.jar to the project as a library and implement a MyBattleShipsClient that extends from the BattleShipsClient class.
public class MyBattleShipsClient extends BattleShipsClient {
public MyBattleShipsClient(String username) {
super(username);
}
@Override
protected void onNewGame(int x, int y) {
}
etc etc....