public static void Main()
Console.WriteLine(chessKnight("d5"));
public static int chessKnight(string cell) {
c[0] = Char.ConvertToUtf32(cell, 0) - 96;
char[] b = cell.ToCharArray();
string x = b[1].ToString();
if (Int32.TryParse(x, out c[1]))
Console.WriteLine(c[1] - 1);
if((c[0] - 2) >= 1 && (c[1] - 1) >= 1)
{count++; Console.WriteLine("Left side: {0},{1}", (c[0] - 2), (c[1] - 1));}
if((c[0] - 2) >= 1 && (c[1] + 1) <= 8)
{count++; Console.WriteLine("Left side: {0},{1}", (c[0] - 2), (c[1] + 1));}
if((c[0] - 1) >= 1 && (c[1] - 2) >= 1)
{count++; Console.WriteLine("Left side: {0},{1}", (c[0] - 1), (c[1] - 2));}
if((c[0] - 1) >= 1 && (c[1] + 2) <= 8)
{count++; Console.WriteLine("Left side: {0},{1}", (c[0] - 1), (c[1] + 2));}
if((c[0] + 2) <= 8 && (c[1] - 1) >= 1)
{count++; Console.WriteLine("Right side: {0},{1}", (c[0] + 2), (c[1] - 1));}
if((c[0] + 2) <= 8 && (c[1] + 1) <= 8)
{count++; Console.WriteLine("Right side: {0},{1}", (c[0] + 2), (c[1] + 1));}
if((c[0] + 1) <= 8 && (c[1] - 2) >= 1)
{count++; Console.WriteLine("Right side: {0},{1}", (c[0] + 1), (c[1] - 2));}
if((c[0] + 1) <= 8 && (c[1] + 2) <= 8)
{count++; Console.WriteLine("Right side: {0},{1}", (c[0] + 1), (c[1] + 2));}