Skip to content

🎮 [Proposal]: Add Battleship to web app #1246

@notslazer

Description

@notslazer

📛 Project Name

Terminal Battleship 🚢

📊 Category

Games

📝 Project Overview

Terminal Battleship is an intermediate-level, single-player version of the classic board game. The script will generate a 5x5 grid using a 2D list and randomly hide a ship using the random module. The player will have a limited number of turns (torpedoes) to guess the correct row and column to sink the ship.

The game loop will update and print the grid after every guess to give the user visual feedback. It will heavily feature emojis to make the terminal experience engaging:

  • 🌊 for unexplored water
  • for a missed shot
  • 💥 for a direct hit

This project will challenge users to manage state, handle user input validation (e.g., preventing out-of-bounds guesses or duplicate guesses), and manipulate 2D lists (matrices) using strict, beginner-friendly procedural logic.

✅ Code Compliance Checklist

  • This project will use ONLY Python's Standard Library (No pip install).
  • The codebase will use procedural logic (No unnecessary classes/functions unless creating a GUI/Web App).
  • The terminal interface will include interactive emojis.

  • I am a registered GSSoC 2026 contributor and want this assigned to me.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions