Class Index

java.lang.Object
  |
  +--Index

public class Index
extends java.lang.Object

Given a board this class returns the index of the database where the result can be found.


Constructor Summary
Index()
           
 
Method Summary
static int GetIndex(CheckerBoard board)
          Given a CheckerBoard, the index for querying the database is computed and returned.
static int PieceCount(CheckerBoard b)
          Given a CheckerBoard, the number of pieces on the board is returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Index

public Index()
Method Detail

GetIndex

public static int GetIndex(CheckerBoard board)
Given a CheckerBoard, the index for querying the database is computed and returned. The index is an int.


PieceCount

public static int PieceCount(CheckerBoard b)
Given a CheckerBoard, the number of pieces on the board is returned.