This is a project for developing the game shiffeversenken (also known as battleships) played over the console.
Example output:
A B C D E F G H I J
1 [ ][ ][ ][ ][-][-][-][-][-][ ]
2 [ ][-][-][-][-][#][#][#][-][ ]
3 [ ][-][#][-][-][-][-][-][-][ ]
4 [ ][-][#][-][ ][X][X][X][X][-]
5 [-][-][-][-][ ][ ][ ][ ][ ][-]
6 [#][-][ ][ ][ ][-][ ][ ][ ][ ]
7 [#][-][ ][-][ ][-][-][ ][ ][ ]
8 [#][-][ ][ ][ ][ ][ ][ ][ ][ ]
9 [#][-][ ][-][ ][ ][ ][-][ ][ ]
10[-][-][ ][ ][ ][ ][ ][ ][ ][ ]
Instructions:
Run the Main.java
or
export as .jar file and run 'java -jar PATH_TO_JAR_FILE.jar' from a command shell.
Play:
just input where you want to shoot (e.g. E4 or c7).