To create a bot that will take part in a battle royale against classmates on a server, written by the lecturer.
The bot is able to move around a large (500x500) grid at a constant rate, shoot at a constant rate and range, and detect other ships at a constant range. Networking code is provided, the task was to write battle instructions for the bot.
BattleshipServer.exe is run on a central server. Students connect using the given credentials on the day, by changing parameters in the client code.
** I still have the server executable, but as it is compiled code I did not write, I'm not sure if it's OK to distribute it **
Student ships will then battle eachother on the grid, losing one point for every hit taken and gaining one point for every point of damage dealt. This will produce a ranking of ship tactics and grades will be distributed in accordance with this ranking.
I got 62% - not too shabby for my first programming assignment!
It shouldn't be too difficult to write a server for this based on the screenshot from scratch by looking at the client code. If you actually want to do this and need help, contact me to discuss the server code I have!