🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8549

Re: Conway's Game of Life in Java (not applet)

#8549
From: sjacko
Date: Mon, 12 Mar 2001 19:58
38 lines
2141 bytes
I'm particularly having trouble with allowing the user to enter the starting
configuration of cells by entering co-ordinates i.e. what is the best way to
store them in an array.

I can create the array at any size by asking the user to enter the
co-ordinates and then display the contents using two for loops to enter a
character in each cell. But it each entering a character in each individual
cell that is awkward.

Simon

"Paul Gifford" <paul.gifford@home.nospam.com> wrote in message
news:adWq6.171789$B6.38051103@news1.rdc1.md.home.com...
> What specifically are you having trouble with?
>
> p
>
> --
>
> "sjacko" <sjacko@lineone.net> wrote in message
> news:tansrgkkvbjq79@corp.supernews.co.uk...
> > Hi
> >
> > I'm trying to write a program to implement Conway's Game of Life in Java
> and
> > am having much luck.
> >
> > I was wondering if anyone knew where I could find some source code (not
> for
> > applets) on the web that could give me a few pointers.
> >
> > Thanks in advance
> >
> > Simon
> >
> >
>
>
Technical Details
Message-ID: <tasru2pe4c1g6b@corp.supernews.co.uk>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-uk-post-01!supernews.com!corp.supernews.co.uk!not-for-mail
References: <tansrgkkvbjq79@corp.supernews.co.uk> <adWq6.171789$B6.38051103@news1.rdc1.md.home.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113ae9,12639020e584fbba
X-Google-Attributes: gid113ae9,public
X-Google-Thread: f74b3,12639020e584fbba
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 10a146,12639020e584fbba
X-Google-Attributes: gid10a146,public
X-Google-ArrivalTime: 2001-03-13 11:06:48 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-uk-post-01!supernews.com!corp.supernews.co.uk!not-for-mail
From: "sjacko" <sjacko@lineone.net>
Newsgroups: borland.public.jbuilder.java.language,comp.lang.java.help,comp.lang.java.programmer
Subject: Re: Conway's Game of Life in Java (not applet)
Date: Mon, 12 Mar 2001 19:58:27 -0000
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <tasru2pe4c1g6b@corp.supernews.co.uk>
References: <tansrgkkvbjq79@corp.supernews.co.uk> <adWq6.171789$B6.38051103@news1.rdc1.md.home.com>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
X-Complaints-To: newsabuse@supernews.com
Lines: 40