Exemplo n.º 1
0
		public Board Clone()
		{
			var clone = new Board(Width, Height);
			for (int x = 0; x < Width; x++)
				for (int y = 0; y < Height; y++)
					clone.colors[x, y] = colors[x, y];
			return clone;
		}
Exemplo n.º 2
0
		public AvailableColorFinder(Board board, Vector2D[] homeSquares)
		{
			this.board = board;
			this.homeSquares = homeSquares;
			homeColors = new Color[homeSquares.Length];
		}