cs015.Othello
Class BoardWeights

java.lang.Object
  extended bycs015.Othello.BoardWeights
Direct Known Subclasses:
DefaultWeights

public abstract class BoardWeights
extends java.lang.Object

This class represents board weights for Othello. Remember that these are not necessarily the best possible board weights.


Constructor Summary
BoardWeights()
           
 
Method Summary
abstract  int getWeight(int x, int y)
          This returns the weight at the space indicated by the parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoardWeights

public BoardWeights()
Method Detail

getWeight

public abstract int getWeight(int x,
                              int y)
This returns the weight at the space indicated by the parameters. Valid values of the parameters are 0-9. This assumes that you have border squares and gives weights to these squares also. Therefore the top left real square in the game is at position 1, 1.