← Home

Knowledge Representation — Probability Distribution

An AI agent that hunts a player using a live discrete probability distribution over grid cells

Vision Range
14 cells
Max cells the AI can see in its cone
Vision Arc
45°
Total width of the view cone in degrees
Rotation Speed
0.50
Lerp factor toward target angle per tick
AI Moves Every
1 tick
Ticks between AI position updates
Spread Rate
0.35
Fraction of P diffusing to neighbours/tick
Decay Rate
0.000
Mix rate toward uniform per tick (forgetting)
Probability Floor
0.0000
P added to all unobserved cells each tick
Tick Rate
5.0/s
Simulation steps per second
Near-Field Box
3×3
Box of cells always visible around the AI
CAUGHT!
Press ↺ Reset to try again
State: Paused — edit walls freely
Player:
AI:
AI sees player: No
Peak probability:

Controls

Move player: WASD or arrow keys

Pause / Play: Space

Place wall: Left-click / drag — works while paused

Erase wall: Right-click / drag

Probability Settings

Spread Rate — how fast uncertainty propagates outward. Higher = player could move farther per tick.

Decay Rate — how quickly the AI "forgets" old certainty, mixing the distribution toward uniform.

Prob. Floor — a persistent small probability added to every unobserved cell, representing background uncertainty.

Vision Settings

Yellow cells show the AI's line-of-sight within its cone. Empty visible cells drop to zero probability.

Vision Arc — narrow cone = AI must sweep more carefully; wide cone = fewer hidden areas.

Rotation Speed — lower values show the AI gradually sweeping toward suspected locations.