Class boardRules

java.lang.Object
  extended by boardRules

public class boardRules
extends java.lang.Object


Field Summary
static int[] directions
           
 
Constructor Summary
boardRules()
           
 
Method Summary
static int[] AIbracket(MyButton[] bBoard, int player, int spot)
           
static MyButton[] bracket(MyButton[] bBoard, int player, int spot)
           
static int[] getLegalMoves(MyButton[] bBoard, int player)
           
static int opponentColor(int player)
           
static boolean wouldBracket(MyButton[] bBoard, int player, int spot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directions

public static int[] directions
Constructor Detail

boardRules

public boardRules()
Method Detail

bracket

public static MyButton[] bracket(MyButton[] bBoard,
                                 int player,
                                 int spot)

AIbracket

public static int[] AIbracket(MyButton[] bBoard,
                              int player,
                              int spot)

wouldBracket

public static boolean wouldBracket(MyButton[] bBoard,
                                   int player,
                                   int spot)

getLegalMoves

public static int[] getLegalMoves(MyButton[] bBoard,
                                  int player)

opponentColor

public static int opponentColor(int player)