blankposition.cs

来自「classic tsp analysis method with c++ !」· CS 代码 · 共 30 行

CS
30
字号
using System;

namespace HRD.Core
{
	//===========================================================
	// 用来记录一盘棋局中的空格位置
	//===========================================================
	public struct BlankPosition
	{
		public Position Pos1;
		public Position Pos2;

		public BlankPosition(Position pos1, Position pos2)
		{
			this.Pos1 = pos1;
			this.Pos2 = pos2;
		}

		public bool IsBlank(int x, int y)
		{
			if( x == Pos1.x && y == Pos1.y)
				return true;
			if( x == Pos2.x && y == Pos2.y)
				return true;

			return false;
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?