Author: Tony Werten
Date: 04:09:27 03/21/05
Go up one level in this thread
On March 21, 2005 at 02:38:37, Dieter Buerssner wrote: >On March 20, 2005 at 20:20:40, Walter Faxon wrote: > >>Here is the BASIC program as sent to me by Bill (323 lines): > >Thanks. > >Many lines snipped ... > >It is over 20 years ago, since I programmed in Basic. > >>1040 DIM A(7, 7), U(1, 6): > >A is a 2 dimensional array with dimensions 7*7, yes? >And U? 1*6 does not seem to make too much sense (why would one want to have one >dimension of length 1)? IIRC a lot of Basic variants have the array dimensions zero to number (inclusive). So it's an 8 by 8 and 2 by 7 array. > >>1100 U = -1 ?? Line 1100 says:Give the value -1 to U ? > >What does this mean? > >>1320 U = U + 1: That another statement can follow, but I don't think it has to. So either messy programming or a deleted line. Tony > >And this? What does the colon on the end of the line mean? > >As with Zach's code - seems hardly easier to read than disassembly. > >Does anybody remember the IOCCC entry a couple of years ago, that was a Basic >interpreter in (IRCC) 25 lines of C code. It could play "lunar lander" (the >first computer game, I have met in my live - IRCC). WOuld that Basic interpreter >run this code? > >Cheers, >Dieter
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.