Package org.gnubridge.core

Examples of org.gnubridge.core.Trick


  public void printOptimalPath(Deal g) {
    Node move = getBestMove();
    if (move == this) {
      for (int moveIdx : getMoves()) {
        Trick currentTrick = g.getCurrentTrick();
        System.out.println(g.getNextToPlay() + ": "
            + g.getNextToPlay().getPossibleMoves(currentTrick).get(moveIdx));
        g.doNextCard(moveIdx);
        if (currentTrick.isDone()) {
          System.out.println("  Trick taken by " + g.getPlayer(g.getWinnerIndex(currentTrick)));
        }
      }
    } else {
      move.printOptimalPath(g);
View Full Code Here

TOP

Related Classes of org.gnubridge.core.Trick

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.