Examples of PokerRobotPlayer


Examples of com.barrybecker4.game.multiplayer.poker.player.PokerRobotPlayer

     * @return done return true if the game is over after moving
     */
    @Override
    public boolean doComputerMove(Player player) {
        assert(!player.isHuman());
        PokerRobotPlayer robot = (PokerRobotPlayer)player.getActualPlayer();
        PokerController pc = (PokerController) controller_;

        PlayerAction action = robot.getAction(pc);
        String msg = applyAction(action, robot);
        pc.addRecentRobotAction(action);

        JOptionPane.showMessageDialog(parent_, msg, robot.getName(), JOptionPane.INFORMATION_MESSAGE);
        refresh();
        pc.advanceToNextPlayer();

        return false;
    }
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.