NNTP-Posting-Date: Sun, 24 Feb 2013 11:43:48 -0600 Date: Sun, 24 Feb 2013 17:43:45 +0000 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: BlueJ don't know what i did wrong References: <638ed624-9eba-44eb-bcbf-68466e5bb5f1@googlegroups.com> <42d76fca-d365-4030-ae8c-07a806eab87c@googlegroups.com> <1wtai7dd80h80$.6rbtwoyou3gh.dlg@40tude.net> In-Reply-To: <1wtai7dd80h80$.6rbtwoyou3gh.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <5q6dnc3pF_HJzLfMnZ2dnUVZ7s-dnZ2d@bt.com> Lines: 56 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-34a91yP8vo8H7Pm1uiQeSXj5tVhrDUjB+WUL/x2X3d2YAuQI/VpNcW+KOsO3WpbnTYh6gmdd0O55c8g!+uSl5yGAesqYD6txFVTUv/pMhRNrSvW9n0VoaIcu3gg+J1pCPd6/cUSyYp7nN+fpGtAgwL4m+Gg= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3194 Path: csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail Xref: csiph.com comp.lang.java.programmer:22482 On 24/02/13 17:21, Joerg Meier wrote: > On Sun, 24 Feb 2013 16:29:46 +0000, lipska the kat wrote: > >> if >> (stillthere[help[whohelps]]!=0&&whohelps!=assisting[k]+1+helpstillyet[k]){ > >> What is the point of the stillthere[] array ? > > As I understood it, units are only there once (or twice for those few you > mentioned), and stillthere decides whether they are already "spent" on > another player. So that problem is a problem with the design logic, not the > actual coding. But doesn't that mean that there could only ever be a maximum of 103 players ? (in this particular case that is) I understand where you got the 15,895 points from but I don't understand why you think that is some sort of limit ??? If you run the code with 400 users it hangs at some arbitrary point maybe 3 players, maybe 30. If you look at the output you see that a players points appear to be the ones assigned to them plus the points of their helpers (I think) e.g Spieler2: Dumutef Guard 25 Rechets of Bogdan 50 Marcu Esenwein 20 Rechets of Bogdan 50 Your Points : 145 if you comment out the two places I mentioned earlier the result is exactly the same (points added together) but the program doesn't hang because this part of the expression stillthere[help[whohelps]]!=0 is always true e.g Spieler392: Dumutef Guard 25 Rechets of Bogdan 50 Ana Karithon 100 Your Points : 175 It's quite likely that I have the wrong end of the stick but I just can't see the point of the stillthere array given that the OP seems to say that there can be (at least up to) 1000 players. I've never really looked into game design/theory lipska -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun