Beispiel #1
0
    /// <summary>
    /// Paste the game notation from clipboard onto the board.
    /// </summary>
    private void _pasteGameFromClipboard()
    {
        string curgame = GUIUtility.systemCopyBuffer;

        _abstractBoard = new cgBoard();
        Debug.Log("Pasted game from clipboard: " + curgame);
        cgNotation notation = new cgNotation(_abstractBoard);

        notation.Read(curgame);

        _abstractBoard.LoadGame(notation);
        _setBoardTo(_abstractBoard);
    }