SkillAgentSearch skills...

Battlesnakes

512 Byte 2 Player Bootsector Game - NASM Assembly

Install / Use

/learn @darkvoxels/Battlesnakes
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

BattleSnakes

BattleSnakes is a 512 Byte 2 Player Bootsector Game - Written in NASM x86 Assembly

<br> Shout out to XlogicX for inspiration for this project and some coding techniques (https://github.com/XlogicX/tronsolitare) <br> <h2>Gameplay</h2><br> 2 snakes start out by moving away from their inital wall, they create a tail as they move, if they touch their own wall the tail will solidify and become a wall, if they touch their own tail they die, if they touch the other players wall they die, and if they go out-of-bounds they die. Kill the other player by trapping them in your walls or cutting the tail!<br>

image of gameplay<br>

<h2>Assembly and Execution</h2><br> To Assemble Sourcecode Ensure you have nasm installed and run:<br> nasm battlesnakes.asm -f bin -o battlesnakes.img<br> <br> This tells nasm to assemble the file as binary file with no ELF or PE headers<br> <br> To Execute I recommend using one the following VM methods<br> <br> Qemu<br> qemu battlensakes.img or qemu-system-i386 battlesnakes.img<br> <br> VirtualBox or VMware<br> <br> Set battlesnakes.img as a floppy drive image and boot the floppy<br> <br> <h3>Known Bugs / Issues</h3> If snakes run right into one another blue/p1 wins because there are no collision check for a "tie".<br> Snakes can overlap paths without dying, found when p2/red snake passes the previous position of p1/blue snake, this can be a passover or a recurring passover in wich the paths are on top of one another<br>
View on GitHub
GitHub Stars4
CategoryDevelopment
Updated6mo ago
Forks0

Languages

Assembly

Security Score

77/100

Audited on Sep 8, 2025

No findings