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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.224.219.146 with SMTP id hu18mr10748288qab.3.1364362024352; Tue, 26 Mar 2013 22:27:04 -0700 (PDT) X-Received: by 10.49.120.67 with SMTP id la3mr1326699qeb.12.1364362024331; Tue, 26 Mar 2013 22:27:04 -0700 (PDT) Path: border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!209.85.216.87.MISMATCH!t2no20864985qal.0!news-out.google.com!k8ni11100qas.0!nntp.google.com!ca1no11399962qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 26 Mar 2013 22:27:04 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.74.165.254; posting-account=OorKfwoAAAAEG64-jj7QakHqbp6ymd2J NNTP-Posting-Host: 24.74.165.254 References: <5c51e9ce-b8d1-42f1-999c-a37c3c600bc8@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9f42f805-d430-40ac-b509-069493223e45@googlegroups.com> Subject: Re: Three of a crime Card game From: gattamaneni abhiram Injection-Date: Wed, 27 Mar 2013 05:27:04 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Original-Bytes: 4251 Xref: number.nntp.dca.giganews.com comp.lang.ada:180797 Date: 2013-03-26T22:27:04-07:00 List-Id: On Tuesday, 26 March 2013 23:10:31 UTC-4, Dennis Lee Bieber wrote: > On Tue, 26 Mar 2013 16:18:10 -0700 (PDT), gattamaneni abhiram > > declaimed the following in > > comp.lang.ada: > > > > > Three-of-a-crime is a simple logic game for up to 3 players. There are 7 different > > > criminals. The computer randomly chooses three of these (the "perpetrators"), but > > > doesn't tell the players which are chosen. The computer then puts down three random > > > criminals. 0, 1, or 2 of these may be the actual perpetrators. The computer also tells > > > the player how many (but not which) of the three criminals are perpetrators. The > > > players may either guess which three criminals are the actual perpetrators or they may > > > pass. If a player guesses wrong, she is out of the game and the other players continue. > > > If no player chooses to guess, the computer puts down another three randomly chosen > > > criminals (0, 1, or 2 of which may be actual perpetrators) and tells the players how > > > many (but not which) of these are actual perpetrators. Players can again use logic to > > > deduce the three actual criminals and may guess. Play continues until some player > > > guesses correctly or until all players have guessed incorrectly. > > > > > > I am not able to deduce the logic. Can anyone please help me with the logic? > > > > Given your description, this is NOT a "simple logic game"... There > > is, in your description, NO LOGIC to apply. That is, there are NO clues > > provided to the players. > > > > Consider: > > > > 7 candidate suspects > > 3 of the 7 are guilty (perpetrators) > > 3 of the 7 are listed to the players (these three may or may not be in > > the list of guilty) > > "computer also tells the player how many": OKAY, ONE CLUE... but if the > > computer says "0", then there is nothing for a player to do. Similarly, > > if the computer says "3", then all of the listed names are guilty -- > > again, nothing for a player to do. > > > > Therefore, the only "play" occurs if the computer says 1 or 2 of the 3 > > names is in the guilty list. > > > > With three names, and one candidate, the first two players are going on > > sheer luck (if they guess wrong, the third player picks the third name > > -- win). And with two candidates, you again have just three > > possibilities: A & B, A & C, or B & C... So again the first two players > > are just guessing, and if they don't guess right, the third player picks > > the only remaining choice and wins. > > > > > > > > -- > > Wulfraed Dennis Lee Bieber AF6VN > > wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/ Thank You for the help. Now I am onto the coding part!!