Package org.darkhelm.dragonchess.server.board

Examples of org.darkhelm.dragonchess.server.board.BoardSet.move()


      if(destPiece != null) {
        continue;
      }
     
      // Perform move on cloned board set.
      set.move(board.getType(), horizPos, vertPos, pos.getBoard(),
          pos.getHoriz(), pos.getVert());

      // check validation.
      if (!check && set.isCheck(team.other())) {
        continue;
View Full Code Here


    if (getType() == MoveTypes.FROM_AFAR && score == 0) {
      return ret;
    }

    // Perform move on cloned board set.
    set.move(board.getType(), horizPos, vertPos, boardDest.getType(),
        horizDest, vertDest);

    // FROM_AFAR doesn't need to worry about check validation.
    if (getType() != MoveTypes.FROM_AFAR && !check
        && set.isCheck(team.other())) {
View Full Code Here

          || (score > 0 && getType() == MoveTypes.MOVE)) {
        break;
      }

      // Perform the move on the cloned board set.
      set.move(board.getType(), horizPos, vertPos, boardDest.getType(),
          horizDest, vertDest);

      // Validate for check condition -- the move cannot place your own
      // king in check.
      if (!check && set.isCheck(team.other())) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.