Battleship in C

Console game developed with matrices and structured programming

Academic C project implementing the classic Battleship game on a 6x6 grid using matrices, structures, functions, coordinate validation and game logic.

  • C
  • Matrizes
  • Structs
  • GCC
  • Programação Estruturada
  • Git
  • GitHub
Created: 11 Aug 2026Updated: 17 Aug 2026

Description

Academic project developed as part of the IEFP Technical Programming course. The application implements a console-based version of Battleship using two-dimensional arrays to represent each player's defence and attack boards. It includes ship placement and validation, coordinate input, shot tracking, hit detection and ship-state management. The project strengthened core C programming skills, including structured programming, structs, functions, loops, conditional logic and matrix manipulation.

Back