Examples of addMoveProperty()


Examples of com.sgfj.SGFNode.addMoveProperty()

public class SGFNodeBoundsVisitorTest extends TestCase {

    public void testWalk() {
        SGFNode node = new SGFNode();
        SGFMove wPass = new SGFMove(SGFMove.WHITE);
        node.addMoveProperty(wPass);
        SGFNode node2 = new SGFNode();
        SGFMove bPlay = new SGFMove(1, 10, SGFMove.BLACK);
        SGFMove wPlay = new SGFMove(3, 4, SGFMove.WHITE);
        node2.addMoveProperty(bPlay);
        node.add(node2);
View Full Code Here

Examples of com.sgfj.SGFNode.addMoveProperty()

        SGFMove wPass = new SGFMove(SGFMove.WHITE);
        node.addMoveProperty(wPass);
        SGFNode node2 = new SGFNode();
        SGFMove bPlay = new SGFMove(1, 10, SGFMove.BLACK);
        SGFMove wPlay = new SGFMove(3, 4, SGFMove.WHITE);
        node2.addMoveProperty(bPlay);
        node.add(node2);
        SGFNode node3 = new SGFNode();
        node3.addMoveProperty(wPlay);
        node.add(node3);
View Full Code Here

Examples of com.sgfj.SGFNode.addMoveProperty()

        SGFMove bPlay = new SGFMove(1, 10, SGFMove.BLACK);
        SGFMove wPlay = new SGFMove(3, 4, SGFMove.WHITE);
        node2.addMoveProperty(bPlay);
        node.add(node2);
        SGFNode node3 = new SGFNode();
        node3.addMoveProperty(wPlay);
        node.add(node3);

        SGFNodeBoundsVisitor bounds = new SGFNodeBoundsVisitor(0, 0, 19, 19);
        node.eval(bounds);
        assertEquals(1, bounds.xmin);
View Full Code Here

Examples of com.sgfj.SGFNode.addMoveProperty()

    }

    public void testAddMove() {
        try {
            SGFNode node = new SGFNode();
            node.addMoveProperty(new SGFMove(16, 3, SGFMove.BLACK));
            assertEquals(new SGFMove(16, 3, SGFMove.BLACK), node.getMoveProperty());
        } catch (Exception e) {
            e.printStackTrace();
            fail("No exceptions are expected.");
        }
View Full Code Here

Examples of com.sgfj.SGFNode.addMoveProperty()

            SGFNode n;
            String s;

            n = new SGFNode();
            n.addMoveProperty(new SGFMove(0, 0, SGFMove.BLACK));
            root.add(n);
            s = SGFWriter.toString(root);
            assertEquals("(;SZ[9]HA[0];B[aa])", s);

            n = new SGFNode();
View Full Code Here

Examples of com.sgfj.SGFNode.addMoveProperty()

            root.add(n);
            s = SGFWriter.toString(root);
            assertEquals("(;SZ[9]HA[0];B[aa])", s);

            n = new SGFNode();
            n.addMoveProperty(new SGFMove(1, 1, SGFMove.WHITE));
            root.add(n);
            s = SGFWriter.toString(root);
            assertEquals("(;SZ[9]HA[0](;B[aa])(;W[bb]))", s);
        } catch (IOException e) {
            e.printStackTrace();
View Full Code Here

Examples of com.sgfj.SGFNode.addMoveProperty()

            SGFNode n;
            String s;

            n = new SGFNode();
            n.addMoveProperty(new SGFMove(0, 0, SGFMove.BLACK));
            root.add(n);
            s = SGFWriter.toString(root);
            assertEquals("(;SZ[9]HA[0];B[aa])", s);

            n = new SGFNode();
View Full Code Here

Examples of com.sgfj.SGFNode.addMoveProperty()

            root.add(n);
            s = SGFWriter.toString(root);
            assertEquals("(;SZ[9]HA[0];B[aa])", s);

            n = new SGFNode();
            n.addMoveProperty(new SGFMove(1, 1, SGFMove.WHITE));
            root.add(n);
            s = SGFWriter.toString(root);
            assertEquals("(;SZ[9]HA[0](;B[aa])(;W[bb]))", s);
        } catch (IOException e) {
            e.printStackTrace();
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.