|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcs015.Othello.BoardWeights
cs015.Othello.DefaultWeights
This class represents default board weights for Othello. Remember that these are not necessarily the best possible board weights.
Constructor Summary | |
DefaultWeights()
|
Method Summary | |
int |
getWeight(int x,
int y)
This returns the weight at the space indicated by the parameters. |
void |
setWeight(int weight,
int x,
int y)
This allows you to edit the weights of individual spaces. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultWeights()
Method Detail |
public final int getWeight(int x, int y)
BoardWeights
getWeight
in class BoardWeights
public void setWeight(int weight, int x, int y)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |