Evolving Strategies for the Prisoner's Dilemma

ie.errity.pd
Class Moves

java.lang.Object
  |
  +--ie.errity.pd.Moves

public class Moves
extends java.lang.Object

Table of the 64 possible histories of a 3 game sequence, indexed by numbers from 0-63.


Constructor Summary
Moves()
          Creates a table of the 64 possible histories of a 3 game sequence, indexed by numbers from 0-63.
 
Method Summary
 int get(java.util.BitSet h)
          Decodes a 3 game history to an index number
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Moves

public Moves()
Creates a table of the 64 possible histories of a 3 game sequence, indexed by numbers from 0-63.

Method Detail

get

public int get(java.util.BitSet h)
Decodes a 3 game history to an index number

Parameters:
h - a 3 game bitset history
Returns:
an index number between 0-63

Andrew Errity [99086921]