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
- Create a tank and give it a name.
- Write JavaScript behavior using the available tank commands.
- Save the tank and select an opponent.
- Watch the automated battle.
Battle concepts
- Movement, rotation, aiming, and shooting are determined by each tank's program.
- A match ends when one tank is defeated or the time limit is reached.
- Players can study results and improve their algorithms between matches.
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.