Back to Projects

Tank Battle – C++ Console Game

OOP C++ Custom file parsing and structured I/O

Project Description

Tank Battle is an object-oriented (OOP) console game developed in C++ as part of an academic project. The game features tanks, mines, walls, and dynamic gameplay across multiple screens, with optional computer players, recording functionality, and automated result validation.

Key Features

  • Multiple tanks per player
  • Multiple levels (game progresses through several .screen files).
  • Human vs Human, Human vs Computer, and Computer vs Computer modes.
  • Save & Load functionality for gameplay using .steps and .result files.
  • Silent mode: run the game and validate results automatically.
  • Step-by-step screen loading in lexicographical order.
  • Full control system per tank track and shooting mechanism.
  • Score tracking per screen and across the session.

Game Screenshots

Tank Battle Screenshot 1

Source Code Files

Browse the source code files below. Click on a file to view its contents.

Select a file to view
// Select a file from above to view its contents