Class AI

java.lang.Object
  extended by AI

public class AI
extends java.lang.Object


Field Summary
static int length
           
static int origPlayer
           
 
Constructor Summary
AI()
           
 
Method Summary
static MyButton[] copier(MyButton[] bBoard)
           
static int count(MyButton[] bBoard, int player)
           
static int evalu(MyButton[] board, int player)
           
static int[] forwardCheck(MyButton[] bBoard, int player, int ply, int spot, int[] prune)
           
static int moveRestricter(MyButton[] bBoard, int player)
           
static int onePlyPieceCounter(MyButton[] bBoard, int player)
           
static int randomMove(int[] possible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

origPlayer

public static int origPlayer

length

public static int length
Constructor Detail

AI

public AI()
Method Detail

randomMove

public static int randomMove(int[] possible)

moveRestricter

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

onePlyPieceCounter

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

forwardCheck

public static int[] forwardCheck(MyButton[] bBoard,
                                 int player,
                                 int ply,
                                 int spot,
                                 int[] prune)

evalu

public static int evalu(MyButton[] board,
                        int player)

copier

public static MyButton[] copier(MyButton[] bBoard)

count

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