A project that lets you run a local server and let's play your battleship AI against the server. You can also play against other AI players without the server. All game sessions are printed and visualized on the console.
User has two instances of AbstractPlayer
play against each other. Automatic players are also allowed.
Directions:
- Create two separate instances of
AbstractPlayer
in theDriver
class. - Insert those two instances in the controller's parameters.
BattleSalvoController controller = new BattleSalvoController( your_first_instance_here, your_second_instance_here );
- Ensure the
.runGame()
method of the controller is called. - Your game is ready, follow the GUI's directions, and you're all set.
User starts a local server and plays against it with an instance of AbstractPlayer
.
Directions:
- In the
Driver
class, make sure you have a valid AI player, an instance ofAbstractPlayer
that can play automatically. - Pass your player instance into the
ProxyController
instance to register your player. - Using the
Server.jar
file, run it with arguments--debug all
. - Once the server is running, run your
Driver
with arguments that are the address and port.- Address: 0.0.0.0
- 35001
- Once your Driver is connected, you can watch as the session takes place.
- Build Automation: Gradle
- Unit Testing: JUnit 5.8.1
- Test Coverage: JaCoCo
- JSON: FasterXML Jackson