Package pdp.scrabble.ia

Examples of pdp.scrabble.ia.AIBoardModel


     *  */
    public DawgMoveGen(GameEnvironment env, Player p, DAWGItf graph, MoveAccumulator storage) {
  super(env, p, storage);
  this.dawg = graph;
  storage.setTarget(this.moves);
  this.model = new AIBoardModel(env.board());
  this.allowedLetters[0] = new DawgCrossCheckSet(dawg, model);
  this.allowedLetters[1] = new DawgCrossCheckSet(dawg, model);
    }
View Full Code Here


  }
 
  @Override
  public void generate(Board board, Rack letters) {
    // TODO Auto-generated method stub
    AIBoardModel aiBoard = new AIBoardModel(board);
    for(int x =0; x<Board.HORI_DIM; x++)
      for(int y= 0; y<Board.VERT_DIM;y++)
        if(aiBoard.isAnchorSquare(x,y)){
          int posRelative = 0;
          Location posAbs = new LocationImpl(y,x);
          generate_aux(aiBoard,posRelative,posAbs,"",letters, gaddag.getTop());
        }
  }
View Full Code Here

TOP

Related Classes of pdp.scrabble.ia.AIBoardModel

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.