GhostFleet puts naval combat in your browser
GhostFleet is a browser-based naval battle game that puts two fleets of five ships each against a stormy-dark sea. The player arranges their fleet on a hidden grid, then takes turns firing shots at the opponent's position. The game state reveals itself gradually: fog clears to show where shells land, and hidden fleets emerge as shots hit their mark. The interface uses simple touch and mouse gestures — two-finger drag to move a ship, double-tap to rotate — making it accessible across devices without requiring a keyboard.
Deploying your fleet
Before battle begins, each player places their five ships on a personal grid. Ships can be moved by clicking and dragging, or auto-placed instantly with a single keystroke. Rotation is handled with the R key, while the C key clears a selected vessel from the grid. Once all ships are positioned and locked in, the battle starts. The interface shows a difficulty selector set to Easy by default, along with counters for shots fired, hits, misses, and fleet status. At the start of a new match, both fleets stand at 100% strength with zero shots exchanged.
Commanding the fleet
During play, fleets move across the stormy-dark waters using two-finger drag gestures on touchscreens or mouse dragging on desktops. A double-tap on any ship rotates it 90 degrees. The game tracks accumulated statistics: total shots, accuracy percentage, number of hits and misses, and remaining fleet strength for both sides. A "Room Not joined" indicator appears when the multiplayer session has not yet connected, and the match proceeds with empty shot counts until the first projectile is fired.
Why the interface matters
From a development standpoint, GhostFleet demonstrates how turn-based strategy games can rely on gesture-based controls without sacrificing depth. The placement phase — with its auto-arrange and rotation keys — mirrors classic Battleship implementations but adapts them for modern touch interfaces. The fog-of-war effect, which clears incrementally as shots land, is a visual pattern frequently used in naval-themed games to tension each decision. Developers interested in browser-based multiplayer will notice the use of a named room concept ("RoomNot joined") to signal connection status before gameplay begins.
Machine‑learning relevance
While the current demo shows only human-versus-human play with empty shot counters, the architecture — grid placement, shot resolution, fleet-strength tracking — provides a minimal testbed for reinforcement-learning agents. An AI could learn to place ships optimally, predict opponent shot patterns, or maximize hit probability with limited information. The "haunted fleet" theme and stormy visual style also offer a canvas for texture and effect work that generative‑AI tools could iterate on quickly.
Getting started
To play, open the page and click "Start Battle" after arranging your fleet. The game begins with fog clearing animations, and the first shot can be fired once both fleets are locked in. Touch device users can drag ships with two fingers and rotate via double‑tap, while mouse users rely on click‑drag and the R/C keys. Statistics update in real time, and a win/loss record tracks overall performance across multiple matches.
GhostFleet remains in an early stage: the demo shows no active opponents, no shot damage modeling, and no single‑player AI. Its primary value right now lies in its clean grid-based UI, straightforward control scheme, and the foundation it offers for more complex naval‑combat mechanics — including AI opponents, procedural fleet generation, or networked multiplayer expansion.