Пример #1
0
        public static GameNode SimpleShusakuNode()
        {
            GameNode root = new GameNode();

            var node = root.BlackMove(17, 16);
            node = node.WhiteMove(3, 17);
            node = node.BlackMove(16, 13);
            node = node.WhiteMove(15, 17);
            node = node.BlackMove(3, 4);
            node = node.WhiteMove(17, 5);
            node = node.BlackMove(16, 15);
            node.Name = "Косуми";
            node.MoveAnnotation = MoveAnnotation.Good;

            node = node.WhiteMove(17, 10);
            node.Name = "Фусеки Сюсаку";
            node.NodeAnnotation = NodeAnnotation.Even;
            node.MoveNumber = 1;
            node.Comment = "Дальше можно A или B";

            node.AddAction(new Position(12, 17), new SetLabelAction("A"));
            node.AddAction(new Position(14, 16), new SetLabelAction("B"));
            node.AddAction(new Position(16, 15), new SetMarkerAction(CellMarker.Circle));

            return root;
        }
Пример #2
0
        public GameNode CreateBranch()
        {
            GameNode branch = new GameNode();
            branches.Add(branch);

            return branch;
        }
Пример #3
0
 public GoGame(GameInfo info, GameNode node)
 {
     GameTree = node;
     GameInfo = info;
 }