X-Received: by 10.224.208.9 with SMTP id ga9mr8296422qab.8.1361785970368; Mon, 25 Feb 2013 01:52:50 -0800 (PST) X-Received: by 10.49.84.167 with SMTP id a7mr748901qez.11.1361785970280; Mon, 25 Feb 2013 01:52:50 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!t2no4737064qal.0!news-out.google.com!t2ni671qaj.0!nntp.google.com!dd2no2811639qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Mon, 25 Feb 2013 01:52:50 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=89.182.206.137; posting-account=3oYGEgoAAABGs1teCy6kclesgXSDPZEm NNTP-Posting-Host: 89.182.206.137 References: <638ed624-9eba-44eb-bcbf-68466e5bb5f1@googlegroups.com> <42d76fca-d365-4030-ae8c-07a806eab87c@googlegroups.com> <1wtai7dd80h80$.6rbtwoyou3gh.dlg@40tude.net> <5q6dnc3pF_HJzLfMnZ2dnUVZ7s-dnZ2d@bt.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <77afaabf-ec0f-46d6-b3ea-d8f186dbf7e4@googlegroups.com> Subject: Re: BlueJ don't know what i did wrong From: marvin.radke@htp-tel.de Injection-Date: Mon, 25 Feb 2013 09:52:50 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.java.programmer:22500 sorry for the late answer :/ well.. the game is like said a tabletop game with many units which are grou= ped on cards. And this cards i want to give to the players, 3 cards are 2 t= imes available thats why i did it like this.... I have done the same with the programm "turbo pascal" and there its working= (just some changes), but wanted to write it so that it works with BlueJ.= =20 The problem is : if i take out the stillthere thing it give out cards more = then once:=20 e.g. Spieler164: MacDirk Warriors 80 Siege 120 Mika Connour 110 Mika Connour 110 Syvarris 100 Your Points : 520 The way i wanted it to work is that it choose randomly a card, then looks w= hether this card got helpunits and if yes it has a chance to choose a rando= m one of these and then look again if there are helpunits left, if yes ther= e is again a random chance that a random one of the helpunits is taken and = so on.... until either there are no more helpunits for this card or the ran= dom number is lower then 3. And thank you for helping me :)