bhargav-j47/UEFI-snake-game ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Snake game that runs as a bare metal UEFI program in C.

I want it to boot directly into the game, work in QEMU with OVMF, and also be something I can copy onto an EFI system partition and run on real hardware. The game should use only UEFI, no operating system, and it should draw the board, move the snake, let me control it with the keyboard, spawn food, grow when eaten, and end the game when I hit the wall or myself. Please include a clean build setup so I can compile it into an EFI file and run it with the provided script or a normal make command.

If you need to, look up current gnu efi and QEMU docs online so the build and run steps are correct. Keep it simple and reliable, and make sure the controls and startup instructions are easy to follow.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab