Package general

Examples of general.Board


  /**
   * Initialises game.
   */
  private void initGame() {
    board = new Board();
    move = new Move(board);
    game = new Game();
    createPlayers();
  }
View Full Code Here


      int[] rowCoord = {0, (height/8)-1, 2*(height/8)-1, 3*(height/8)-1, 4*(height/8)-1,
      5*(height/8)-1, 6*(height/8)-1, 7*(height/8)-1};
     
      Index loc, gLoc = new Index(0, 0);
      //get square location
      loc = new Board().notationToIndex(notation);
      //get upper left corner location
      gLoc.setX(columnCoord[loc.getY()]);
      gLoc.setY(rowCoord[loc.getX()]);
     
      return gLoc;
View Full Code Here

TOP

Related Classes of general.Board

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.