5 ms·
(source included in the link, writeup will follow) To my knowledge, the first implementation ever in 32 bytes. This builds upon the 65 bytes version of Vladisl
by HellMood 6y ago
(source included in the link, writeup will follow) To my knowledge, the first implementation ever in 32 bytes. This builds upon the 65 bytes version of Vladislav Kaipetsky, Tenie Remmel and Mark Andreas from 1998.
Edit: The writeup is now available :
http://www.sizecoding.org/wiki/Game_of_Life_32b http://www.sizecoding.org/wiki/Game_of_Life_32b
Capture : https://www.youtube.com/watch?v=EgqiLf19og4 https://www.youtube.com/watch?v=EgqiLf19og4
- jnurmine 6y agoThe modbyte trick is clever. The writeup sure brought back memories. Over 20 years ago I made a 2-player graphical worm game for DOS. I still have it in a zip. It is 123 bytes long and back then I couldn't squeeze more out of it. After reading that writeup I feel like there's so much bloat in that 123 bytes!
- zorbash 6y agoPlease make it available online!
- jnurmine 6y agoI can make it available here :) Here's the binary: uBMAzRC6AKCOwovyM/+xAYvp+rraA+yoCHX77KgIdPsmgDWRdDCQkORgityyBDqHawF0C5CQ/sP+ ynXy6wmQKtzQ44uPcwED+YD0BIf+h+k793W/tAyA9ATA7AKK1IDCQbgDAM0QtALNIcMeIBEfJCYX Jf//AQDA/kAB Copy that to a file and then: "base64 -d blah.txt > worms.com" Make sure there are no spaces in the beginning of the lines. This is from the original document: "This is a version of the worm game for two players. Game objective is to stay alive longer than the other worm! You die if you eat yourself, ie. you are going RIGHT and you press LEFT. Move the worm with the following keys: PLAYER A: (topmost worm) W A D S PLAYER B: (lower worm) I J L K Winner is indicated by player letter, "A" or "B". An even game is indicated by a "C". An even game means that the worms ate each others heads, and nobody won." Edit: correct base64 formatting
- gregschlom 6y agoIt's online now: http://twt86.co/?c=uBMAzRC6AKCOwovyM%2F%2BxAYvp%2BrraA%2ByoCHX77KgIdPsmgDWRdDCQkORgityyBDqHawF0C5CQ%2FsP%2BynXy6wmQKtzQ44uPcwED%2BYD0BIf%2Bh%2Bk793W%2FtAyA9ATA7AKK1IDCQbgDAM0QtALNIcMeIBEfJCYXJf%2F%2FAQDA%2FkAB http://twt86.co/?c=uBMAzRC6AKCOwovyM%2F%2BxAYvp%2BrraA%2ByoC... :)
- anthk 6y agocool. For OpenBSD: cat worms.uue begin-base64 644 worms.com uBMAzRC6AKCOwovyM/+xAYvp+rraA+yoCHX77KgIdPsmgDWRdDCQkORgityyBDqHawF0C5CQ/sP+ ynXy6wmQKtzQ44uPcwED+YD0BIf+h+k793W/tAyA9ATA7AKK1IDCQbgDAM0QtALNIcMeIBEfJCYX Jf//AQDA/kAB b64decode -o worms.com worms.uue
- adhoc32 6y agoI did the same thing! The year was 1997. There was some kind of online coding competition back then if I recall correctly. Mine is larger (256 bytes) but it has a nice background image (a mandelbrot fractal). Here is the binary: M8CO4LATzRC7JABmZP83ZMcHvwFkjE8CaACgB7AI+jPJSfOqv0ABscaqUL3C/jPAM9tXvxAAZg+/ 8w+v2GaYZvfoZovQZg+v9mYrxmbB+AcrxS0AAcH7BivZg8NkZgPWZsHqEHUDT3XNi8cEEF+qRXW8 WKris/u/6Hu+2HyL6rv///7EsQK62gPsqAh1++yoCHT74vGwCSaAPQ+qdoBP/sAmgDwPJogED4Zy /wP9A/P+zHXOZmSPBiQAsAPNEMPkYIrgPC11A71AATwRdQO9wP48HnUDvf//PCB1A70BADxQdQO7 QAE8SHUDu8D+PEt1A7v//zxNdQO7AQCwIOYgzw==
- gregschlom 6y agoRunning on twt86.com: http://twt86.co/?c=M8CO4LATzRC7JABmZP83ZMcHvwFkjE8CaACgB7AI%2BjPJSfOqv0ABscaqUL3C%2FjPAM9tXvxAAZg%2B%2F8w%2Bv2GaYZvfoZovQZg%2Bv9mYrxmbB%2BAcrxS0AAcH7BivZg8NkZgPWZsHqEHUDT3XNi8cEEF%2BqRXW8WKris%2Fu%2F6Hu%2B2HyL6rv%2F%2F%2F7EsQK62gPsqAh1%2B%2ByoCHT74vGwCSaAPQ%2BqdoBP%2FsAmgDwPJogED4Zy%2FwP9A%2FP%2BzHXOZmSPBiQAsAPNEMPkYIrgPC11A71AATwRdQO9wP48HnUDvf%2F%2FPCB1A70BADxQdQO7QAE8SHUDu8D%2BPEt1A7v%2F%2FzxNdQO7AQCwIOYgzw%3D%3D http://twt86.co/?c=M8CO4LATzRC7JABmZP83ZMcHvwFkjE8CaACgB7AI%... I see the mandelbrot background but then it exits
- adhoc32 6y agoNot sure why, just tested it in native dosbox and it works. edit: try pressing any arrow key when the fractal is drawing. ~controls : Player 1 Player 2 (or arrows) W 8 A + D 4 + 6 X 2
- mycall 6y agoThis is so interesting, VM using a URL for the code.
- gregschlom 6y agoA bit of hair splitting, but technically it's an emulator, not a VM, since it's just simulating the CPU using javascript in your browser.
- neotek 6y agoI have to say, you really are an amazing coder. I read your write up for “memories.” a few days ago and it completely blew my mind. Thanks for sharing your knowledge!