Commit No Bug
Published on

The Sea Battle Game

Authors
  • avatar
    Name
    nikUnique
    Twitter
An interface of a pomodoro timer on a light blue background color

🎯 App Concept

In this game, you can play against a computer in a sea battle game. The game should be interesting enough to play, as it offers music, both explosion and water splash sounds, and animations. All of that makes the game more interesting and engaging.

✨ Motivation

I developed this game to improve my JavaScript and web development skills, and also to have a nice project on my blog.

⏱️ Key Gameplay Features of the "Sea Battle" Game

Game Mechanics:

FEATUREDESCRIPTIONIMPLEMENTATION
Game BoardGrid where players place and track ships10x10 grid, with coordinate system (A1-J10)
Ship TypesDifferent-sized vessels with unique characteristics- Aviation Carrier (4 squares, 1 ship) - Battleship (3 squares, 2 ships) - Cruiser (2 squares, 3 ships) - Destroyer (1 square, 4 ships)
Ship PlacementInitial setup of ships on the player's gridHorizontal or vertical placement, no diagonal positioning, ships cannot overlap

🎮 Gameplay Elements

Shooting Mechanics

  • Turn-based shooting
  • Players take turns selecting coordinates to attack
  • Visual feedback for successful or unsuccessful shots
  • Prevents repeated targeting of the same coordinate

Win/Lose Conditions

  • Objective: Sink all opponents' ships
  • Victory: The player who destroys all opponents' ships first or the player whose opponent loses all their time wins the game

🕹️ Game Mode

  • Player vs Computer:
    • AI with a single difficult level
    • Randomized or strategic computer ship placement

🌟 Additional Features

  • Time limit for each turn
  • Sound effects for hits/misses, destructions
  • Visual animations for approaching projectile, hits, misses

😊 User Experience Enhancements

  • Clear grid labeling
  • Hit/miss indicators
  • Colored cell, where the last shot landed
  • Intuitive interface for ship placement

Here is the link to the game. Enjoy 😄!

Here you go! It is an overview of my "Sea Battle" game.

Got questions? Send me an email to commitnobug@outlook.com