Ferz

Run Settings
LanguageC#
Language Version
Run Command
using System; class MainClass { public static bool IsCorrectMove(string fr, string dist) { int yDiff = Math.Abs(dist[0] - fr[0]); int xDiff = Math.Abs((int)Char.GetNumericValue(dist[1]) - (int)Char.GetNumericValue(fr[1])); if (fr!=dist) { if (xDiff == yDiff){ return true; } if ((xDiff != 0) && (yDiff == 0)){ return true;} if ((xDiff == 0) && (yDiff !=0)){ return true; } //if (fr == dist){ return false; } } return false; } static void Main() { Console.WriteLine("Hello World!"); } }
Editor Settings
Theme
Key bindings
Full width
Lines