Examples of GoMove


Examples of com.barrybecker4.game.twoplayer.go.board.move.GoMove

        List<Move> handicapMoves = new ArrayList<Move>(numHandicapStones_);

        for ( int i = 0; i < numHandicapStones_; i++ ) {
            GoBoardPosition hpos = starPoints_.get( i );

            GoMove m = new GoMove(hpos.getLocation(), 0, (GoStone)hpos.getPiece());
            handicapMoves.add(m);
        }
        return handicapMoves;
    }
View Full Code Here

Examples of com.barrybecker4.game.twoplayer.go.board.move.GoMove

    /**
     * perform a pass for the current player.
     */
    public void pass() {
        GameContext.log( 1, "passing" );   // NON-NLS
        GoMove m = GoMove.createPassMove( 0, get2PlayerController().isPlayer1sTurn() );
        continuePlay( m );
    }
View Full Code Here

Examples of com.barrybecker4.game.twoplayer.go.board.move.GoMove

    /**
     * Current player resigns from the game.
     */
    public void resign() {
        GameContext.log( 1, "player resigns" )// NON_NLS
        GoMove m = GoMove.createResignationMove(get2PlayerController().isPlayer1sTurn());
        continuePlay( m );
    }
View Full Code Here

Examples of com.barrybecker4.game.twoplayer.go.board.move.GoMove

        GoBoard board = (GoBoard) controller.getBoard();
        boolean player1sTurn = controller.isPlayer1sTurn();

        GameContext.log( 3, "BoardViewer: mousePressed: player1sTurn()=" + player1sTurn);

        GoMove m = new GoMove( loc, 0, new GoStone(player1sTurn));

        // if there is already a piece where the user clicked, or its
        // out of bounds, or its a suicide move, then return without doing anything
        GoBoardPosition stone = (GoBoardPosition) board.getPosition( loc );
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.