BattleSnakes is a 512 Byte 2 Player Bootsector Game - Written in NASM x86 Assembly
Shout out to XlogicX for inspiration for this project and some coding techniques (https://github.com/XlogicX/tronsolitare)
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!
To Assemble Sourcecode Ensure you have nasm installed and run:
nasm battlesnakes.asm -f bin -o battlesnakes.img
This tells nasm to assemble the file as binary file with no ELF or PE headers
To Execute I recommend using one the following VM methods
Qemu
qemu battlensakes.img or qemu-system-i386 battlesnakes.img
VirtualBox or VMware
Set battlesnakes.img as a floppy drive image and boot the floppy
If snakes run right into one another blue/p1 wins because there are no collision check for a "tie".
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