Post by Kerr-Mudd,JohnA pong (the 1st computer video game?) in <255 bytes;
I'll give the hexcode 1st to see if there's any takers. Needs DOS.
[snip]
In a similar vein: Tetris in 256 bytes
I took John David Chapman's 1999 code & reduced it by 30 bytes
Here's the text from his source:
;-----------------------------------------------------------------------------
;
; [] TET - 256 byte Tetris [][][]
; [][] []
; [] by []
; [] [] []
; [][][] [][] James David Chapman [][] [][] []
; [][][][] [] [] [] [][] []
;-----------------------------------------------------------------------------
;
; Here is a 256 byte version of of the all time classic game Tetris...
;
; To play, use the left and right SHIFT keys to move the current block, and
; the ALT key to rotate it. Press CONTROL to exit.
;
; I have not had the amount of time that I would have liked to write this
;program, so am sure that there is some optimization still left to be done. If
;you find a saving somewhere along the line, do let me know.
;
; Another idea for a 256 compo? - 256 scramble. Could be fun.
;
; James David Chapman 1999.
;-----------------------------------------------------------------------------
;Features:
; Cool looking blocks Almost as good as graphics mode ones.
; Random shape Taken from the timer.
; Random colours Also taken from timer.
; Rotatable shape I hated writing this bit, as expected.
; Block stop check Stops blocks when they hit another one
; Solidity Prevent sideways crashing into blocks.
; Dual loop timing Allows for multiple input per advance.
; End of game effect More of a useful side effect really!
; Full lines removed A quickly cobbled together routine.
; Frame Sets a maximum 10 block width for game.
; End program key Better than using Control-C etc.
;No space for:
; Scoring +2 for a line, +4 if the bottom line..
; Beeps a simple beep on line removal...
; Speedup should increase in speed over time...
; Graphics mode I had a lovely graphics version, and
; Nice enlarge effect a cool block effect which was too big.
;-----------------------------------------------------------------------------
[[code]]
;-----------------------------------------------------------------------------
;(c) JDC 1999.
;***@globalnet.co.uk
;http://www.users.globalnet.co.uk/~jchap/
;-----------------------------------------------------------------------------
I've used the saved space to tick off the beep on line removal [8] & a simple score [22]
(1 point per line cleared)
Here's my hexdump:
B80100CD106800B807531FE44089C383E30774F7B401C1E0032E8A9FF701C1E3
04BFC4FF83C750BD040091914D74F560BED20789F7B90A00B20826AD20E2ABE2
F9ADB8BA09AB741083C7502EFE06FF0160B402B207CD216183EF6883EE68ABAD
73D32EA0FF01D40A0D3030BF1800268825AFAA6189FE53A01704D0E87301AFD0
E873024F4FD0E87302CD20D0E87312B110BA1111C1C304D1D27302D1CBE2F589
D3B00899E8240074045B89F7525ABADA03E817007403E952FFB104ECA80874FB
ECA80875FBE2F491682B0160B91000F6C103750383C748D1C3731A08D2741326
0A755081FF8007720208C6ABE2E184C661C3260A35AFEBF4E2C66C4EF066E800
WK: used DOS int 21 for the beep, int 20 for exit
His Home page has gone, so I haven't been able to contact him.
--
Bah, and indeed, Humbug.