Skip to content

Graphwar Killer

Generate functions from a Graphwar screenshot or Agent state, or preview the trajectory of an existing function. All calculations run locally.

Workflow

Generate a Graphwar function from path points

Game mode

Settings are saved separately for each game mode

Settings

Output the double absolute-value connector function
Algorithm

Inactive in the current game mode

Controls

Left-click two corners to set bounds; right-click to cancel the selected point.

Data source

Screenshot

Capture, upload, drag in, or press Ctrl/Cmd+V to paste a screenshot
Upload, drag in, or paste a screenshot to start calibration

Formula

Click your position first, then select at least one path point

Pathfinding

Load a screenshot first.

Turn on Use Agent first

Pathfinding settings
Routing algorithm

Expression Syntax

CategorySupported syntax
Variablesx, y, and y'
Operators+, -, /, *, ^, parentheses, and implicit multiplication such as 2x or 2sin(x)
Precedence and associativityFrom lowest to highest: + = - (binary) < - (unary) < * < / < ^. Binary - means adding a unary negative, so 1-2 and 1+-2 both evaluate as 1+(-2). Repeated binary operators are right-associative: 1+2+3 is 1+(2+3), and 1/2/3 is 1/(2/3)
Functionssqrt(), log(), ln(), abs(), sin() (alias sen()), cos(), tan() (alias tg()), and exp(); log is base 10, while ln is base e
Constantse and pi
CompatibilityBy default, Graphwar compatibility treats y' as y and skips unknown characters; both options can be turned off under Advanced settings

How to Use

Basic Workflow

  1. Upload, drag in, paste, or capture a Graphwar screenshot. For exact game data, turn on Use Agent and read the current state.
  2. Confirm the coordinate bounds, soldiers, and obstacles. Correct the bounds or obstacle mask when automatic detection is inaccurate.
  3. In Generate Function mode, select your soldier first, then add targets or intermediate path points. Paste the generated function into Graphwar.
  4. In Simulate Trajectory mode, select the firing soldier and enter a function. The y'' mode also requires a launch angle.

The tool saves separate algorithm settings for y, y', and y''. The defaults are Double Absolute Value for y, Step with Glitch Mode for y', and Step with Glitch Mode for y''.

Canvas Tools

  • Snap Soldiers snaps selections to detected soldiers and uses their actual hit circles.
  • Collision Check applies to manual solving and trajectory simulation. Path Planning, One-Click Clear, and Managed Mode always check collisions.
  • Path Planning finds a route around obstacles after you select a target. If data is missing, the interface shows what is required.

Path Planning

Path Planning searches from the current path end, generates a function, and validates the full trajectory before updating the path.

Single-target Step Path Planning targets the hit-circle center first, then tries the inner x+ edge if the center route fails.

One-Click Clear starts at the current path end, finds usable soldiers in the x+ direction, and plans a route that hits as many targets as possible.

Support Matrix

Function algorithmGame modePath PlanningOne-Click ClearRoute style
Double Absolute Valuey, y', y''SupportedSupportedDirect lines with smooth turns
Stepy, y', y''SupportedSupportedRight-angle paths
Step (Glitch Mode)y', y''SupportedSupportedHorizontal scan and vertical jumps
PCHIPy, y', y''SupportedSmooth curves
Akimay, y', y''SupportedSmooth curves

One-Click Clear Aiming Rules

  • It aims at soldier centers first. If a center is not to the right of the current path end, it aims at the rightmost usable point inside that soldier's hit circle.
  • When multiple soldiers share the same x coordinate, their aim points are offset within their hit circles so the path can keep moving right.
  • The complete trajectory is validated before the path is updated. Soldiers hit along the way also count toward the result.
  • Point Removal can shorten the path when doing so preserves the hits.

Routing Algorithms

AlgorithmBehavior
Lazy Visibility GraphDefault; usually faster with straighter routes, but it may miss a route around complex obstacles
Theta*Usually slower, but more reliable around complex obstacles
X+ ScanUsed automatically by Step ODE Glitch Mode; scans to the right and tries vertical jumps when needed

Glitch Mode

Glitch Mode is available for Step y' and y''. When a normal Step cannot get around an obstacle, it tries a vertical jump and still validates collisions when obstacle data is available. Use Agent when accurate obstacle crossing is important.

Managed Mode

Turn on Use Agent and enter a valid URL to use Managed Mode. It marks local players in the room as ready, then reads state, runs One-Click Clear, and fires during local turns.

If a game mode uses an algorithm that does not support One-Click Clear, Managed Mode lists the required changes before updating those settings. After a search, it briefly shows the elapsed time and submits the shot without waiting for the page to render.

Managed Mode always keeps the best formula found so far in the background. Search Animation affects only the on-page preview, not the search or deadline firing.

With 3 seconds left, Managed Mode fires the best validated plan. If no plan is available, it submits a skip-turn function. It does not deliberately hit an obstacle as a fallback because doing so could change the map and open a route for an opponent.

Keep this page in the foreground while Managed Mode is active. Browser background limits may delay a shot.

How to Use Graphwar Agent

Place graphwar-agent.jar in the game directory.

graphwar-agent.jar file information
  • File size: 67,606 bytes
  • MD5: c615fa0f35a4480a56756cfb795f89e0
  • SHA-256: 899a308e8c6c0f80f5b719971354fa138b7a2a7bec8192cb386ea2f946b8e2a6
  • Version: 1.0.0
  • Source commit time: 2026-07-18T20:29:21+08:00
  • Source commit: 2a65cc7c87e8

Then run:

bash
java -javaagent:graphwar-agent.jar -jar graphwar.jar

The Windows Steam version of Graphwar can use its bundled Java directly:

shell
.\jre1.8\bin\java.exe -javaagent:graphwar-agent.jar -jar graphwar.jar

This starts Graphwar Agent and the game. Return to the tool and turn on Use Agent to read state or enable Managed Mode. For more information, see Graphwar Agent.

Code MIT · Content CC BY-SA 4.0 + SATA · License details