Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!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 NNTP-Posting-Date: Tue, 18 Dec 2012 03:34:15 -0600 Date: Tue, 18 Dec 2012 09:34:13 +0000 From: lipska the kat 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: proper use of .java files (layout) References: <50cfcef0$0$288$14726298@news.sunsite.dk> In-Reply-To: <50cfcef0$0$288$14726298@news.sunsite.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <9fGdnWi_P6sKpU3NnZ2dnUVZ8hadnZ2d@bt.com> Lines: 39 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-gBgd+kEnYkuV26uY22NcxjPLpTNCzqHEI0p4LfuQbcZGIUyqjKJZHeBiJfa7++Y9J50FQG1RDTzwTei!HCsuFu5BgUyHtAeZc6ITkrT1chC+BkcWGtRiyUj8AgRqfctG5VxAb2K8pl22zYgwzxzSwgL+UBs= 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: 2580 Xref: csiph.com comp.lang.java.programmer:20433 On 18/12/12 02:03, Arne Vajhøj wrote: > On 12/17/2012 5:32 AM, lipska the kat wrote: >> Here is a possible outline for a simple card game component >> It has NOT been compiled. > > And it will not. Really, well thank you for pointing that out [snip] >> Java is well suited to an 'Object Oriented' approach to software design >> The above outline is just one of many possible OO solutions. > > > A Deck constructor with just the number of jokers would make > more sense to me. Like I said, it was just an outline. In my house we play games that use a subset of a complete deck, sometimes we play a game that uses only the lower ranks of several packs of cards A Pack of cards contains 54 cards including two jokers. a Deck of cards contains the cards required to play a game, not the same thing at all ... hey look, we're already starting to come up with some new classes, cool huh. These type of questions/issues would come out in the wash. You need a place to start, often the final result looks nothing like the first iteration. Object Oriented software engineering is an iterative process. More that that it is a state of mind. lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun