🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.f77
Article #367

Re: dependency generator posted to net.sources

#367
From: Kenneth Ng
Date: Wed, 11 Jun 1986 09:07
53 lines
2417 bytes
References: <1594@ecsvax.UUCP> <bentley.853> <477@cubsvax.UUCP> <914@ttrdc.UUCP>
Organization: NJ Inst of Tech., Newark NJ

In article <914@ttrdc.UUCP>, levy@ttrdc.UUCP (Daniel R. Levy) writes:
> _18 line_ fortran game of life?  Can you post that (in net.lang.f77 of course)?
It's been quite some time since my school account was rolled
out into the bit bucket, therefore I had to reconstruct this
from scratch, but its pretty close.  The school compiler I
used allowed fortran programs to not have the "STOP" and
"END" statements, although it generated warnings.

      INTEGER A(10,10)/100*0/, B(10,10), C(10,10)
      READ(5,10)((A(I,J),J=2,9),I=2,9)
10    FORMAT(8I1)
      DO 100 COUNT = 1,50
      DO 50 I = 2,7
      DO 50 J = 2,7
      SUM=A(I-1,J-1)+A(I-1,J)+A(I-1,J+1)+A(I,J-1)+A(I,J+1)
     >+A(I+1,J-1)+A(I+1,J)+A(I+1,J+1)
      B(I,J)=0
50    IF(SUM.EQ.3).OR.((SUM+A(I,J)).EQ.3)B(I,J)=1
      DO 60 I=2,9
      DO 60 J=2,9
      C(I,J) = ' '
      IF (B(I,J).EQ.1)C(I,J) = '*'
60    A(I,J) = B(I,J)
100   WRITE(6,70)COUNT,((C(I,J),J=2,9),I=2,9)
70    FORMAT('1 Gen ',I3,/,'0',8('*'),/,8(' |',8A1,'|',/),'0',8('*'),/)
      STOP
      END

-- 
Kenneth Ng: uucp(unreliable) ihnp4!allegra!bellcore!njitcccc!ken
	    bitnet(prefered) ken@njitcccc.bitnet

New Jersey Institute of Technology
Computerized Conferencing and Communications Center
Newark, New Jersey 07102

Vulcan jealousy: "I fail to see the logic in prefering Stonn over me"
Movie "Short Circuit": Number 5: "I need input"

-- 
Kenneth Ng: uucp(unreliable) ihnp4!allegra!bellcore!njitcccc!ken
	    bitnet(prefered) ken@njitcccc.bitnet

New Jersey Institute of Technology
Computerized Conferencing and Communications Center
Newark, New Jersey 07102

Vulcan jealousy: "I fail to see the logic in prefering Stonn over me"
Movie "Short Circuit": Number 5: "I need input"
Technical Details
Message-ID: <201@njitcccc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!caip!andromeda!njitcccc!ken

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!caip!andromeda!njitcccc!ken
From: ken@njitcccc.UUCP (Kenneth Ng)
Newsgroups: net.lang.f77
Subject: Re: dependency generator posted to net.sources
Message-ID: <201@njitcccc.UUCP>
Date: Wed, 11-Jun-86 05:07:39 EDT
Article-I.D.: njitcccc.201
Posted: Wed Jun 11 05:07:39 1986
Date-Received: Sat, 14-Jun-86 04:26:02 EDT
Distribution: net
Organization: NJ Inst of Tech., Newark NJ
Lines: 53
Summary: 18 line game of life