TankScript

About TankScript

What is TankScript?

TankScript is a programming game about designing an algorithm that controls a tank. Players do not manually drive their tanks during a match. Instead, their JavaScript behavior makes decisions for them.

Each tank can move, rotate, aim, and shoot in an automatic 2D arena against a tank created by another user.

How to play

  1. Create a tank and give it a name.
  2. Write JavaScript behavior using the available tank commands.
  3. Save the tank and select an opponent.
  4. Watch the automated battle.

Battle concepts

Learn by programming

TankScript makes programming decisions visible and competitive. Players practice JavaScript logic, iteration, and problem solving by writing strategies that respond to an opponent and the arena.

Diagram of the planned TankScript pages and battle arena
Planned TankScript screens, including the editor and battle arena.