Created
April 2, 2014 11:03
-
-
Save maxzhang000/9932005 to your computer and use it in GitHub Desktop.
lomo2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package player; | |
| import java.util.ArrayList; | |
| public abstract class Board{ | |
| //returns True if a network exists for a certain player, False otherwise. | |
| public abstract boolean networkParser(int playerColor); | |
| //Returns True if a move by a certian player is invalid,otherwise returns False | |
| public abstract boolean checkInvalidMove(Move m, int playerColor); | |
| //Returns ArrayList of all the Moves made by a certain player | |
| public abstract ArrayList<Move> getAllMoves(int playerColor); | |
| //Returns the last index of mostRecentMove as a Move | |
| public abstract Move lastMove(); | |
| //Reverses a move, used in AlphaBeta to check the score of a certain move | |
| public abstract void undoMove(Move m, int color); | |
| // Executes the actions described in a move | |
| public abstract void makeMove(Move m, int color); | |
| //Evaluates the how favorable a move is and returns that score as an Integer | |
| public abstract int evaluateScore(int color); | |
| //Returns true if the board has the maximum amount of pieces and false otherwise | |
| public abstract boolean isFull(); | |
| //Returns a two dimensional Piece array of all the pieces on the board | |
| public abstract Piece[][] getArray(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment