Files
python-bpf/examples
Varun R Mallya 851c7efea4 Examples: Draw bpfsnake with pygame and steer it from the window
A pygame window takes the keyboard from the terminal, so the pty_write
probe would never see a key. Python writes the key code into the state
map instead, one queued turn per tick, ignoring reversals. The board
grows to 20x30 with food anywhere inside the walls, and the snake to 32.
2026-09-25 18:45:09 +05:30
..
2025-10-11 21:34:28 +05:30
2025-10-02 21:24:15 +05:30
x
2026-09-25 10:26:22 +05:30