This is a simple Battleship game in command line
Should install JUnit and set JUnit to CLASSPATH
Go to project folder:
> cd .../Battleship/src
To load the default Battle field recomment this lines in BattleShip.java on Main method:
172: List<List<BattleChar>> battleFeld_a = new BattleFeldFileLoader().loadFromFile("playerBattleField");
173: List<List<BattleChar>> battleFeld_b = new BattleFeldFileLoader().loadFromFile("playerBattleField");
and comment this lines:
180: List<List<BattleChar>> battleFeld_a = new ShipPlacer().askPlayerForShips();
180: List<List<BattleChar>> battleFeld_b = new ShipPlacer().askPlayerForShips();
Run the .jar file:
> java -jar Battleship.jar