|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: R T
Length: 2308 (0x904) Types: TextFile Names: »README«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Tetris/README«
Tetris: the first incarnation I wrote this as a way to learn unix, and it shows. I am releasing this on a limited basis until I can get the bugs worked out. The game looks good, and is playable, addictive even, but the code is horrendous. I don't want to go into it but there are sections of the program that are 30 line if statements. I realised after finishing the program (more or less finishing it anyways) that there is a much better way to implement the moving of blocks and collision detection. However, the code is so ugly that I am not going to do it until possibly spring break. You have been warned. I have successfully compiled and run tetris on vaxen running 4.3 BSD, ISI optimum V's runnning 4.2 BSD, and Sun 3/280's, 3/160's, 4's running sun OS 4.0 and 4.01. If you are on Xenix, SYSV, or anything that is not close to BSD do yourself a favor and delete this code now!!!. When I wrote this I used a local cursor package that is fast but not portable to systems other than BSDish Unixes. This cursor package is included and is really a software system unto itself. It is fast, small, and easy to use. It is an ideal option to curses. To use it, you only need the files csr.c and csr.h. Credit goes to chuck peterson (clp@ssyx.ucsc.edu) for this handy package. The one problem with it, is that you will get a two line type conflict on compilation. This is something that I have ignored up till now. I suspect it is easy to fix, but I have not bothered. When I first wrote this I had no knowledge of how to make code portable, so if you patch the code to run on another system I would REALLY appreciate your input and code. I also used tabstops of 4 in vi, this is before I realized what a horrible thing this is to do. To make things easier just set your EXINIT environment variable to "set ts=4 sw=4" when looking at the code. There are some known bugs, look in the man page for them. I am busy so I may not get around to them for a while. Please pass any new bugs you find onto me. I have lots of ideas for this game, but I have difficulty justifing spending any time on the game. If you need to know the innards of the program because you want to add on to it (or preferably, rewrite it) just mail me. adam margulies vespa@ssyx.ucsc.edu {...}!ucbvax!ucscc!ssyx!vespa