Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Basic prisoner's dilemma? Date: Sun, 17 Apr 2011 23:15:14 -0400 Organization: albasani.net Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net wSIerVmKNWsqrXUZ20XNUucW/Juv7HaW239aG+6iOHjlLqNvg2tYXXyHHkUu8itKD3KJ/V1HwqaHJyv4wP5INKOnVOht8qZcGKiMp5q3L3MNpDube/4PEPyXt/cVoCSI NNTP-Posting-Date: Mon, 18 Apr 2011 03:15:12 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="LDm226ccdnwfeF3CiEs62n/JNK1eG/I4Zgyeh26JbJjAu5md1t54kwBSqHsDYearnSwRKgKWEO55FNQ8z035wtSntp0oFK4RXuxxyd7LvA35lxY3t1ifvdEBRzgmLJqY"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 In-Reply-To: Cancel-Lock: sha1:6Jk19/XoRemlOFGCLSTotAlnCyU= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3097 theglazeb wrote: > I was wondering if you were able to help with me a basic prisoner's > dilemma strategy? How would I implement a basic tit for tat strategy? > And perhaps try to avoid the "death spiral" from occurring when two > players use the tit for tat strategy? > > See below > > Thanks! > > /* > * File: PDStrategy.java > * --------------------- > * This class encapsulates the strategy for an Iterated Prisoner's > * Dilemma game. To enter the contest, all you have to do is change Tell us more about this contest. Where is it held? Do you have a link? What can you win? -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg