示例#1
0
    public void Setup(Board board)
    {
        // Computer.Setup(this);
        ResetButton.Setup(this);
        // Create white pieces
        mWhitePieces = CreatePieces(Color.white, new Color32(80, 124, 159, 255), board);

        // Create place pieces
        mBlackPieces = CreatePieces(Color.black, new Color32(210, 95, 64, 255), board);

        // Place pieces
        PlacePieces(1, 0, mWhitePieces, board);
        PlacePieces(6, 7, mBlackPieces, board);


        // Added
        // White goes first
        Computer.Setup(this);
        SwitchSides(Color.black);
    }