I am trying to compile a c3 program but I keep on getting the error below.
Error CS1502: The best overloaded method match for
string.Join(string, string[])has some invalid arguments.Error CS1503: Argument
#2cannot convertchar[]expression to typestring[]
for (int row = 0; row < 3; row++)
{
char[] arr = new char[3];
for (int col = 0; col < 3; col++)
{
if (board[row, col] == Player.None)
{
arr[col] = ' ';
}
else
{
arr[col] = board[row, col] == Player.P1 ? 'X' : 'O';
}
}
Console.WriteLine("| {0} |", string.Join(" | ", arr));