Package org.darkhelm.dragonchess.server

Examples of org.darkhelm.dragonchess.server.Zobrist


  public long hash() {
    return hash.get();
  }

  private void genHash() {
    hash = new Zobrist();
    for (int row = 0; row < Boards.HEIGHT; row++) {
      for (int col = 0; col < Boards.WIDTH; col++) {
        BoardPiece piece = get(row, col);
        hash.update(type, (piece != null ? piece.getTeam() : null),
            col, row, (piece != null ? piece.getType() : null));
View Full Code Here

TOP

Related Classes of org.darkhelm.dragonchess.server.Zobrist

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.