rules
Class Board

java.lang.Object
  extended by rules.Piece
      extended by rules.Board

public class Board
extends Piece

the board of the game


Field Summary
 int NUM_PIECES
          The number of pieces on the board
private  Piece[][] p
          An array of pieces which are used to reference each piece.
 
Fields inherited from class rules.Piece
BISHOP, BLACK, KING, KNIGHT, MAX, NUM_SIDES, PAWN, QUEEN, ROOK, WHITE
 
Constructor Summary
Board()
          Constructs a board with the right pieces in its starting positions
 
Method Summary
 Piece[][] getArray()
          Returns an array of the pieces in their current positions (side isn't recorded because it isn't part of the piece Object)
 
Methods inherited from class rules.Piece
getpytype, getside, getstate, getx, gety, kill, movex, movey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUM_PIECES

public final int NUM_PIECES
The number of pieces on the board

See Also:
Constant Field Values

p

private Piece[][] p
An array of pieces which are used to reference each piece. The first array address addresses the side and the second addresses the type of the piece

Constructor Detail

Board

public Board()
Constructs a board with the right pieces in its starting positions

Method Detail

getArray

public Piece[][] getArray()
Returns an array of the pieces in their current positions (side isn't recorded because it isn't part of the piece Object)

Returns:
an array of the pieces in their current positions