Package org.ggp.base.player.gamer.event

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


     * 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

        selection = moves.get(bestMove);
    }

    long stop = System.currentTimeMillis();

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

    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

Related Classes of org.ggp.base.player.gamer.event.GamerSelectedMoveEvent

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.