ModelingDebug/MinLong/Zhangaiwu.cs

31 lines
771 B
C#
Raw Normal View History

2024-08-25 23:58:04 +00:00
namespace Debug.MinLong;
#pragma warning disable CS8981 // 该类型名称仅包含小写 ascii 字符。此类名称可能会成为该语言的保留值。
public class Zhangaiwu
{
public static void newshitou()
{
var y = Program.chars.GetLength(0);
var x = Program.chars.GetLength(1);
var shitou = new Shitou
{
x = x - 1,
y = y - 1
};
for (int i = 1; i < x; i++)
{
Program.chars[shitou.y, shitou.x].Char = 'O';
Thread.Sleep(100);
Program.chars[shitou.y, shitou.x].Char = Program.ShowChar;
shitou.x--;
}
}
public class Shitou
{
public int x;
public int y;
public char Char = '0';
}
}