Package nl.zoidberg.calculon.analyzer

Examples of nl.zoidberg.calculon.analyzer.GameScorer


    whitePlayer = new Player();
    blackPlayer = new Player();

//    GameScorer whiteScorer = GameScorer.getDefaultScorer();

    GameScorer scorer1 = GameScorer.getDefaultScorer();
    GameScorer scorer2 = new GameScorer();
    scorer2.addScorer(new MaterialScorer());
    scorer2.addScorer(new BishopPairScorer());
    scorer2.addScorer(new PawnStructureScorer());
    scorer2.addScorer(new KnightScorer());
    scorer2.addScorer(new BishopMobilityScorer());
    scorer2.addScorer(new RookScorer());

    whitePlayer.setGameScorer(scorer1);
   
    // GameScorer blackScorer = new GameScorer();
    // blackScorer.addScorer(new MaterialScorer());
View Full Code Here


//    FENUtils.loadPosition(
//        FENUtils.convertStyle12("<12> -------- -------- -k------ p------- -ppr---- ----p--- ----K--- ------q- B -1 0 0 0 0 1 176 DREZIO CalculonX 2 20 20 0 18 1797 2082 73 K/f3-e2 (0:01) Ke2 0 0 0"),
//        game.getBoard());
   
    for (;;) {
      GameScorer useScorer = game.getBoard().getPlayer() == Piece.WHITE ?
          game.getWhitePlayer().getGameScorer() : game.getBlackPlayer().getGameScorer();
      ChessEngine node = new ChessEngine(useScorer);
      String bestMove = node.getPreferredMove(game.getBoard());
     
      if (bestMove == null) {
View Full Code Here

TOP

Related Classes of nl.zoidberg.calculon.analyzer.GameScorer

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.