Package org.gnubridge.search

Examples of org.gnubridge.search.Node


   *    (0,2) 1_0   1_1  E
   *       
   */

  public void testDoNotAlphaPruneRootsChildrenSoThatHeuristicsMayBeUsed() {
    Node root = new Node(null, Direction.WEST_DEPRECATED);
    Node node_0 = new Node(root, Direction.SOUTH_DEPRECATED);
    node_0.setTricksTaken(Player.WEST_EAST, 1);
    Node node_1 = new Node(root, Direction.SOUTH_DEPRECATED);
    Node node_1_0 = new Node(node_1, Direction.EAST_DEPRECATED);
    @SuppressWarnings("unused")
    Node node_1_1 = new Node(node_1, Direction.EAST_DEPRECATED);

    node_1_0.setTricksTaken(Player.NORTH_SOUTH, 2);
    node_1_0.setTricksTaken(Player.WEST_EAST, 0);
    AlphaBeta ab = new AlphaBeta();
    ab.prune(node_1_0);
View Full Code Here


    Node delegate;
    private String key = "";

    public NodeWrapper(NodeWrapper parent, int nextToPlay) {
      if (parent != null) {
        this.delegate = new Node(parent.delegate, nextToPlay);
      } else {
        this.delegate = new Node(null, nextToPlay);
      }
    }
View Full Code Here

TOP

Related Classes of org.gnubridge.search.Node

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.