Project information

  • Category: Software & Game Application
  • Program Language: C++
  • Project date: Jen 12, 2020
  • Project URL: Link

Battleship

The Battleship project was my first "big" project, written in C++. It is a command-line "game" that simulates the classic board game of Battleship.

In this project, I aimed to recreate the excitement and strategy of the traditional Battleship game in a text-based format. Players can take turns guessing coordinates to try and sink their opponent's ships on a grid. The game incorporates various features such as ship placement, hit/miss detection, and keeping track of the game state.


Developing the Battleship project was a great learning experience for me as it allowed me to apply my knowledge of C++ programming concepts and techniques. I had to implement logic for ship placement, coordinate validation, and game flow control. It also required handling user input, displaying the game board, and providing feedback on the results of each move. Through this project, I gained a deeper understanding of object-oriented programming principles and practiced problem-solving skills. I also had the opportunity to enhance my code organization, readability, and error handling. While the Battleship project holds sentimental value as my first significant programming endeavor, it also serves as a testament to my growth as a developer. It paved the way for more complex projects and provided a solid foundation for my future programming endeavors. Overall, the Battleship project holds a special place in my journey as a programmer, showcasing my ability to bring a classic game to life in a command-line environment using the C++ programming language.