DebutsLib.MoveNode.Add C# (CSharp) Method

Add() public method

Adds reply to certain move in moves map
public Add ( string moveReply, PlayerPosition whitePos ) : MoveNode
moveReply string Move, represented by System.String
whitePos PlayerPosition Position of White figures on board
return MoveNode
        public MoveNode Add(string moveReply, PlayerPosition whitePos)
        {
            MoveNode tempNode = new MoveNode(moveReply, whitePos);
            if (!replies.ContainsKey(tempNode))
                replies.Add(tempNode, tempNode);

            return replies[tempNode];
        }

Same methods

MoveNode::Add ( Move moveReply ) : MoveNode