Efisnake is a snake game running entirely in UEFI. This allows it to be run on any machine that supports UEFI booting without requiring an operating system to be installed.
This is Efisnake running in QEMU:
efisnake.mp4
You can download a pre-built binary from the releases page.
⚠️ These binaries can be outdated. Please build from source for the latest version.
Clone the repository:
git clone https://github.com/simon0302010/efisnake.git
cd efisnakeNow build the project for your UEFI target:
For x86_64 target, use:
cargo build --target x86_64-unknown-uefi --releaseFor aarch64 target, use:
cargo build --target aarch64-unknown-uefi --releaseFor 32-bit x86 target, use:
cargo build --target i686-unknown-uefi --releaseYou should now have the binary located at target/<target>/release/efisnake.efi.
- Format a USB drive to FAT32.
- Create a directory structure on the USB drive as follows:
EFI/BOOT/. - Copy the built
efisnake.efifile to theEFI/BOOT/directory and rename it toBOOTX64.EFIfor x86_64,BOOTAA64.EFIfor aarch64, orBOOTIA32.EFIfor i686.
- Insert the USB drive into the target machine.
- Boot the machine and enter the UEFI boot menu (usually by pressing a key like F12, F10 or F8 during startup).
- Select the USB drive to boot from it.
- The game should start automatically.
Use the arrow keys to control the snake. Press q to exit the game. The snake dies if it runs into the walls or itself. If the snake dies, you can restart the game by pressing space.