
Battleship Minigames
A small and delicate game of battleships made using Java. The games consist of players inserting the coordinates of their ship, and guessing where the computer's ship is on the 10 x 10 map.
​
This project was made utilizing the Encapsulation method in Java. Map references are taken from an old pirate treasure map. The 'X' means that the player's ship has been destroyed, '-' means there was no ship there, '@' means the player's ship is located there, and '!' means that the computer's ship was hit and sunk there.
Added some delay when printing the map, attack result, and also when the computer is deploying their ship to increase game tension and immersion.
​
The purpose of making the project was to understand the Encapsulation method, Java language, while also completing one of the module assignments while studying at Lithan Pvt. Ltd.









