IG3 POO project : Make a battleship
Test IA : package fr/battleship/TestIA.java
Main package : src/sanchez/alexis
- Battleship.java
- Ship.java
-
/coordinate : here are all the files concerning the coordinates
- Coordinate.java
- CoordinateCheck.java
-
/player : here all the files concerning the players
-
Player.java
-
IPlayer.java
-
/ia : here all the files concerning the AI
- AI.java
- AIInterface.java
- AILevel0.java
- AILevel1.java
- AILevel2.java
-
At the root of the project you can find two files:
- WINDOWS_Compilation_java.bat
- LINUX_Compilation_java.sh
First to launch the script :
- Use a Terminal and move to the project with the "cd" command
- Then launch it with the name of the script : WINDOWS_Compilation_java.bat
- Double click on the script :)
- Open a terminal and move to the project with the "cd" command
- Use command chmod to get the right of execution : chmod 744 LINUX_Compilation_Java.sh
- Launch the script with : ./LINUX_Compilation_Java.sh
Then :
Once launched for both the script will create a "build" folder at the root with all the .class files.
Then the script will ask you if you want to launch the Battleship main program or if you want to launch the AI test.
You can also run the programs with those commands (you need to be in the build folder once you have launched the script above):
- Main program Battleship : java sanchez/alexis/Battleship
- TestIA : java fr/battleship/TestIA
Once you have launched the AI test you will find in the build folder a csv file where the results can be found.