Examples of GamerSelectedMoveEvent


Examples of org.ggp.base.player.gamer.event.GamerSelectedMoveEvent

        }
    }

    long stop = System.currentTimeMillis();

    notifyObservers(new GamerSelectedMoveEvent(moves, selection, stop - start));
    return selection;
  }
View Full Code Here

Examples of org.ggp.base.player.gamer.event.GamerSelectedMoveEvent

     * These are functions used by other parts of the GGP codebase
     * You shouldn't worry about them, just make sure that you have
     * moves, selection, stop and start defined in the same way as
     * this example, and copy-paste these two lines in your player
     */
    notifyObservers(new GamerSelectedMoveEvent(moves, selection, stop - start));
    return selection;
  }
View Full Code Here

Examples of org.ggp.base.player.gamer.event.GamerSelectedMoveEvent

        selection = moves.get(bestMove);
    }

    long stop = System.currentTimeMillis();

    notifyObservers(new GamerSelectedMoveEvent(moves, selection, stop - start));
    return selection;
  }
View Full Code Here

Examples of org.ggp.base.player.gamer.event.GamerSelectedMoveEvent

    List<Move> moves = getStateMachine().getLegalMoves(getCurrentState(), getRole());
    Move selection = (moves.get(new Random().nextInt(moves.size())));

    long stop = System.currentTimeMillis();

    notifyObservers(new GamerSelectedMoveEvent(moves, selection, stop - start));
    return selection;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.