BattleSalvo

Jun 13, 2023

BattleSalvo is the third project from my Object-Oriented Design class this summer. Our assignment was to create a command line interface version of the game against a programmed AI opponent, then update it so that it also had a mode to connect to a server opponent.

Some thoughts on creating it:

The board of the game was kind of tricky to set up; depending on how each cell was created and accessed, the coordinate system could be (row, column) or (column, row). When we partnered up for the second part of the project, my partner and I found out that we had chosen opposite coordinate systems.

There were some changes that needed to be made to existing classes for the contents of some of the JSON messages sent to the server. The adaptation of our Coord class was tricky, because our fields were named a certain way (namely row and col), which was different than what the server accepted (x and y). That was inconvenient because the style guide for the class mandated field names of at least three characters.

Next

Post: Bujava™

>>