Graphwar

How to play

Players alternate turns, each controlling one soldier at a time. Type an equation and fire: the shot follows the graph, starting at your soldier. In function mode the graph is shifted by a constant so it passes through your soldier. In the ODE modes your soldier is the initial condition, and in 2nd-order mode the up and down arrow keys change the firing angle. The plane runs from x = -25 to 25 and y = -15 to 15. Player 2 shoots leftwards, so their x-axis is mirrored (the same equation gives the same shape for both players).

Syntax: x y y', + - * / ^, sqrt log ln abs sin cos tan exp, plus pi and e. Use parentheses: 1/x+2 means (1/x)+2. Shots explode on terrain, edges, invalid values (like sqrt of a negative) or when they get too long. Hitting a teammate kills them too.