How to play
PlotWar is turn-based artillery on graph paper. You aim by typing a function of x, and your soldier fires along its graph. Two minutes of reading, a lifetime of trick shots.
The goal
Two sides, blue and orange, face off on a coordinate plane from x = -25 to 25 and y = -15 to 15, with rocks scattered in between. Knock out every enemy soldier to win.
You always play from the left. Whichever side you're on, the battlefield is shown with you on the left, so y = x always climbs toward the enemy. Spectators see blue on the left.
Coordinates are shown from your side too, so they match the functions you type. Hover anywhere on the battlefield to read (x, y), or hover a soldier for its exact position, then do the math.
Turns
- The sides take turns. On your side, players go in seat order, and each player's soldiers take turns firing.
- The soldier with the pulsing halo is the one firing this turn.
- Each turn has a timer (30, 60 or 90 seconds). If it runs out, the turn is lost.
- You can type while others play, so have your next shot ready.
- Friends on one screen? In Play, make their seats human. The banner names whose turn it is, so pass the device.
- Win by wiping out the other side. If both sides go down in the same shot, it's a draw. Leaving a match removes your soldiers.
Aiming
Your function is slid up or down so its graph passes through your soldier, then traced left to right, toward the enemy. In math terms, a soldier at (x₀, y₀) fires along y = f(x) − f(x₀) + y₀.
So adding a constant does nothing: x/2 and x/2 + 3 fire exactly the same shot. The shape is what aims.
x/2 climbs toward blue.So a function makes the same shot for either side. In the shot log, each shot is written the way its author typed it, from their side.
What a shot does
A shot ends at the first of these:
- It hits a rock. The rock gets a hole, which opens new paths for everyone.
- It leaves the plane.
- It becomes undefined, like
sqrt(x)below zero orln(x)at zero. - It jumps, like
tan(x)at its poles,1/xat zero, orfloor(x)at a step. - It wiggles too long, like
sin(1000x).
A soldier is hit when the shot passes within half a unit of its center. Explosions only change the terrain; they never hurt soldiers. If your function isn't defined at your own soldier, the shot is refused and you can try again.
Writing functions
Type it the way you'd write it on paper. The preview shows how it was read, so you'll know before you fire.
3 0.5 .5 | Plain decimals. There's no scientific notation: 2e3 means 2·e·3. |
pi π e | Constants. |
+ - * / ^ | Powers group from the right: 2^3^2 is 2^9. And -x^2 is -(x^2). |
2x 3(x+1) 2sin(x) | Multiplication can be implied, like on paper. 1/2x means (1/2)·x. |
sin(x) | Functions need parentheses: sin x won't work. |
Sin(X) | Case and spaces don't matter. |
× · ÷ − | Typographic symbols work too, so pasting from anywhere is fine. |
Up to 200 characters.
Function cheat sheet
- sin(x)sine (radians)
- cos(x)cosine (radians)
- tan(x)tangent (radians)
- cot(x)cotangent
- sec(x)secant
- csc(x)cosecant
- asin(x) · arcsininverse sine
- acos(x) · arccosinverse cosine
- atan(x) · arctaninverse tangent
- sinh(x)hyperbolic sine
- cosh(x)hyperbolic cosine
- tanh(x)hyperbolic tangent
- exp(x)e to the power
- ln(x)natural logarithm
- log(x)base-10 logarithm
- sqrt(x)square root
- cbrt(x)cube root
- abs(x)absolute value
- sign(x) · sgn−1, 0 or 1
- floor(x)round down
- ceil(x)round up
- round(x)round to nearest
- min(a, b)smaller of two values
- max(a, b)larger of two values
- pi · π3.14159…
- e2.71828…
Shot ideas
Start simple and add pieces. Each of these is fired from the soldier on the left.
y = 0.3xA straight line. Change the number to tilt it.y = -x^2/30A lob: up, over, and down.y = 2sin(x/2)A wave that weaves between rocks.y = 2tanh(x-1)A step: climb right where you choose.y = abs(x)/2A corner: down, then up at x = 0.y = x^3/60Flat in the middle, steep at the ends.
Keyboard
- Enter
- Fire (on your turn)
- ↑↓
- Step through your previous functions
- Esc
- Clear the input
- /
- Jump to the input
On phones, a math keypad replaces the keyboard. You can switch back any time.
Ready to try it?
The bots are patient. Your friends, less so.