Javascript Game of Tron In 226 Bytes 115
Have you upgraded your hardware to play something beefier than 140-byte Tetris?
New submitter alokmenghrajani writes with "a detailed view of how we size-optimized a game of Tron to just 226 bytes." It's also optimized for Chrome, and very fast.
1KB Chess For The Sinclair (Score:5, Informative)
Re:Damn. (Score:5, Informative)
I wouldn't be surprised if you could write the same game in under 226 bytes of Z80 or 6502 assembly, so doing it in a high-level language seems much less impressive.
Re:1KB Chess For The Sinclair (Score:5, Informative)
Actually it was only 672 bytes - the 1024 byte memory had to include the screen memory also, much like shared video memory today - could take up to 768 of the 1024 bytes for a full 32x24 screen! (the chess game only used an 11-line screen for the board etc)
And it's even considered by some to be the greatest program ever written. [kuro5hin.org]
2 player? (Score:5, Informative)
It's not really a game of Tron without a competing lightcycle. (Without fruit, it's not really a game of Snake either.)
Re:Controls? (Score:3, Informative)
IJKL instead of WASD or arrow keys. It saves space because IJKL is actually in alphabetical order, which makes it a neat modulus away from being the four directions.
Same thing in x86 asm (Score:4, Informative)
In any case, this [pastebin.com] is possibly the right version of the code. Should compile with NASM, and is even playable in Dosbox with arrow keys if you turn the emulation speed as low as it can go.