07 / Learning game

Laser Battle 2

Play a small arena and inspect its self-play training curves.

Playable browser sketch · scripted opponent

Playable sketch / scripted opponent

A small duel

Move with arrow keys or WASD, aim with the pointer, and fire with Space or a tap. On a phone, drag on the arena to move and tap Fire.

Ready

Browser sketch with a scripted opponent. Saved DQN training plots appear below.

Recorded plots

Training record

Recorded reward curve from Laser Battle 2 training
Episode reward across the saved self-play training run. The horizontal axis follows training episodes.

Reading the arena

01

Controls

You move and fire in the browser sketch against a scripted opponent.

02

Training

The saved reward and win-rate plots come from the separate DQN self-play training run.

03

Comparison

The sketch exposes movement, aiming, and firing. The plotted DQN was evaluated in the original local game.

The local game has movement, firing, reloading, and connected obstacle layouts. A DQN challenger trains against a champion; promotion depends on evaluation.

The browser sketch gives you the arena controls against a scripted opponent. The saved plots show episode reward and win rate from the separate training run.