📄 program.cs
字号:
using System;
namespace KnightTourPlus
{
class Program
{
static void Main( string[] args )
{
string StartX, StartY;
int x = -1;
int y = -1;
do
{
Console.Write( "Input StartX(0-7):" );
StartX = Console.ReadLine();
try
{
x = int.Parse( StartX );
}
catch
{
x = -1;
continue;
}
} while ( x < 0 || x > 7 );
do
{
Console.Write( "Input StartY(0-7):" );
StartY = Console.ReadLine();
try
{
y = int.Parse( StartY );
}
catch
{
y = -1;
continue;
}
} while ( y < 0 || y > 7 );
SKKnightPlus skknightplus = new SKKnightPlus( x, y );
skknightplus.StartSearch();
Console.Read();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -