Exemplo n.º 1
0
    public string Image()
    {
        string image = "";

        string[] linesPl1 = _playerOneSea.Image(Player1, _gameMode).Split('\n');
        string[] linesPl2 = _playerTwoSea.Image(Player2, _gameMode).Split('\n');

        for (int i = 0; i < linesPl2.Length - 1; i++)
        {
            if (i == 0)
            {
                image += linesPl1[i] + linesPl2[i] + "\n";
            }
            else
            {
                image += linesPl1[i] + "    ║  " + linesPl2[i] + "\n";
            }
        }
        return(image);
    }