Reversi.ReversiBoard.CheckAll C# (CSharp) 메소드

CheckAll() 공개 메소드

盤面に置けるますがあるかどうかを調べる
public CheckAll ( ReversiColor color ) : bool
color ReversiColor
리턴 bool
		public bool CheckAll(ReversiColor color)
		{
			for(int x=1; x<=this.width; ++x)
				for(int y=1; y<=this.height; ++y)
					if(Check(x,y, color)) return true;

			return false;
		}