ghost/navy-fleet-battle

Navy Fleet Battle (F-Droid): classic sea battle against the computer. Start a game, fire at cells A1 to J10 and read the turn and the ships left. Offline, no account.

Runs 55× fewer tokens Score 37/100 Official hard skill python

Token savings

98% fewer tokens
Tokenswithout1,640,414with30,039 (98% fewer)
Timewithout99.0 swith50.3 s (49% less time)
Tool callswithout27with4 (85% fewer)

Agent run: stopped early without the skill, finished with it (not independently checked).

One recorded run each way, claude-haiku-5-5, same phone and same prompt. Watch it in the Before / after tab.

Recorded: open_menu · live agent session on a real phone

Control Navy Fleet Battle on Android with an AI agent

Control Navy Fleet Battle on Android with an AI agent. Let your agent play Battleship against the computer on your phone: it starts a game, calls its shots and reports what happened.

Target search phrase: AI agent plays Battleship on Android

Demo shows: fire (cell=B5)

Ghost in the Droid seed skill for Navy Fleet Battle (net.tigr.navyfleetbattle), the classic sea battle game against the computer. The fields are drawn on a canvas, but the turn, hit messages and ship counters are text, so an agent can aim and track the game. Offline, no account.

ActionWhat it doesParams
open_menuRestart the app and read the start menu.none
new_gameStart a new game against the computer with random ship placement.none
fireFire at one cell (letter A-J and number 1-10) and return hit, sunk, miss or game over.cell
fire_manyFire at several cells in a row (comma separated, up to 20) and return the result of each.cells
get_stateRead the turn, the hint line and how many enemy and own ships of each size are left (battleship, cruiser, destroyer, boat).none

Toolkit

An agent can drive the whole app with these; compose them.

RoleAction
Entryopen_menu, new_game
Primitivesfire, fire_many
Read stateget_state

Install

The app: F-Droid, or https://f-droid.org/packages/net.tigr.navyfleetbattle/. The skill:

pip install "ghost-in-the-droid>=1.6.0"   # 1.6.0 is not on PyPI yet: until it ships, git clone the repo and `pip install -e .`
ghost skill install ghost/navy-fleet-battle

Use

ghost skill run ghost/navy-fleet-battle fire --param cell=B5 --device <serial>
run_skill(name="ghost/navy-fleet-battle", action="fire", params={"cell": "B5"})

Try asking: "Start a Navy Fleet Battle game against the computer and fire at B5, C3 and E5."

Tested on

Real Samsung phone, Android 13 (720x1600, 300 dpi, en-GB), Navy Fleet Battle 8. License: MIT.

Known failure modes and versions tested

Versions tested

App versionAndroidDeviceSkill versionDates
813Samsung real phone (720x1600, 300 dpi, en-GB)1.0.02026-11-02

Recorded failures

  • Firing at a cell twice is refused.
  • Placement is random, so a run cannot predict hits.

Popups and first-run screens handled

  • None.

Try a sample prompt or run an action by name. Replace any parameters in braces with your own values.

open_menu

Play demo

Try asking

  • Open the Navy Fleet Battle menu
  • open Navy Fleet Battle
ghost skill run ghost/navy-fleet-battle open_menu

new_game

Play demo

Try asking

  • Start a new Navy Fleet Battle game
  • play sea battle against the computer
ghost skill run ghost/navy-fleet-battle new_game

fire

Play demo

Try asking

  • Fire at B5 in Navy Fleet Battle
  • shoot at cell C3 in sea battle
ghost skill run ghost/navy-fleet-battle fire

fire_many

Play demo

Try asking

  • Fire at A1, C3 and E5 in Navy Fleet Battle
  • fire a salvo in sea battle
ghost skill run ghost/navy-fleet-battle fire_many

get_state

Play demo

Try asking

  • What is the Navy Fleet Battle status?
  • how many enemy ships are left
ghost skill run ghost/navy-fleet-battle get_state