Simple grid cells
Your browser does not support the HTML canvas tag.
Drag the joystick to move
Code
Source
They also did it with learning
Place cells: How your brain creates maps of abstract spaces (Artem Kirsanov)