Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: proper use of .java files (layout) Date: Mon, 17 Dec 2012 21:25:51 -0500 Organization: A noiseless patient Spider Lines: 25 Message-ID: References: <20fa5c05-6fcc-47ed-9e80-a44975887928@googlegroups.com> <50cfcde6$0$288$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 18 Dec 2012 02:25:54 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="ffb8f7085759b339c1002252b48331a4"; logging-data="3892"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ObzWzFq719zM9/9jCubMh" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <50cfcde6$0$288$14726298@news.sunsite.dk> Cancel-Lock: sha1:JtitybPcGeQq1i8wRGsyGDfOsms= Xref: csiph.com comp.lang.java.programmer:20415 On 12/17/2012 8:58 PM, Arne Vajhøj wrote: > On 12/17/2012 1:28 PM, Lew wrote: >> markspace wrote: >>> You will of course have to make 52 instances of that class. Do that at >> >> No "of course" about it. >> http://www.hoylegaming.com/rules/showrule.aspx?RuleID=209 >> >>> runtime, don't try to make 52 files. >> >> How many cards in a blackjack shoe? >> http://en.wikipedia.org/wiki/Blackjack >> >> If you hard-code certain assumptions, e.g., that there are 52 cards in >> the deck, >> your program will be unable to model many games. > > I would argue that a deck is always 52 cards, but that some > games use more than one deck. How come a brand-new pack of cards always has fifty-four? -- Eric Sosman esosman@comcast-dot-net.invalid