[44] | 1 | package cecj.app.go; |
---|
| 2 | |
---|
| 3 | import cecj.app.othello.OthelloBoard; |
---|
| 4 | import games.Board; |
---|
| 5 | import games.GameMove; |
---|
| 6 | import games.Player; |
---|
| 7 | |
---|
| 8 | public class GoBoard implements Board { |
---|
| 9 | |
---|
| 10 | private static final int BOARD_SIZE = 8; |
---|
| 11 | private static final int BOARD_MARGIN = 2; |
---|
| 12 | |
---|
| 13 | private int board[][]; |
---|
| 14 | |
---|
| 15 | public int countPieces(int i) { |
---|
| 16 | // TODO Auto-generated method stub |
---|
| 17 | return 0; |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | public double evaluate(Player player) { |
---|
| 21 | // TODO Auto-generated method stub |
---|
| 22 | return 0; |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | public int getPiece(int row, int col) { |
---|
| 26 | // TODO Auto-generated method stub |
---|
| 27 | return 0; |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | public int getPiece(int row, int col, int dir, int dist) { |
---|
| 31 | // TODO Auto-generated method stub |
---|
| 32 | return 0; |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | public GameMove getShiftedMove(int row, int col, int dir, int dist) { |
---|
| 36 | // TODO Auto-generated method stub |
---|
| 37 | return null; |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | public int getValueAt(int row, int col) { |
---|
| 41 | // TODO Auto-generated method stub |
---|
| 42 | return 0; |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | public boolean isEmpty(int row, int col) { |
---|
| 46 | // TODO Auto-generated method stub |
---|
| 47 | return false; |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | public void setPiece(int row, int col, int dir, int dist, int currentPlayer) { |
---|
| 51 | // TODO Auto-generated method stub |
---|
| 52 | |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | @Override |
---|
| 56 | public GoBoard clone() { |
---|
| 57 | GoBoard clone = new GoBoard(); |
---|
| 58 | for (int row = 1; row <= BOARD_SIZE; row++) { |
---|
| 59 | for (int col = 1; col <= BOARD_SIZE; col++) { |
---|
| 60 | clone.board[row][col] = board[row][col]; |
---|
| 61 | } |
---|
| 62 | } |
---|
| 63 | return clone; |
---|
| 64 | } |
---|
| 65 | |
---|
| 66 | public static int size() { |
---|
| 67 | return BOARD_SIZE; |
---|
| 68 | } |
---|
| 69 | } |
---|