From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5b528da331e8df66 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.10.230 with SMTP id l6mr4173435wib.3.1364989974110; Wed, 03 Apr 2013 04:52:54 -0700 (PDT) Path: ex12ni20485wid.1!nntp.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: Marble Clock Date: Wed, 03 Apr 2013 07:52:52 -0400 Organization: The Wasteland Message-ID: References: <7075541f-01b7-4cd4-997f-b0b8048f067d@googlegroups.com> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: 2013-04-03T07:52:52-04:00 List-Id: In article , gattamaneni abhiram wrote: > Do I need to use timer functions in the program to depict the changes > in the places of the marbles in different trays? You're modeling a clock that works by stacking balls on a level representing one time unit until that unit overflows, incrementing the next higher time unit. A series of LIFO stacks might be a good choice. The delay timer suggested by Eryndlia would drive your model at whatever rate you choose: shorter delay -> faster simulation. Initially, your choice "to depict the changes" should be simple, perhaps using Ada.Text_IO. See also: -- [Please do not quote signatures.]