Skip to content

Commit 851c7ef

Browse files
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.
1 parent cba2c89 commit 851c7ef

1 file changed

Lines changed: 229 additions & 91 deletions

File tree

0 commit comments

Comments
 (0)