Esempio n. 1
0
static char		ft_check1(int x, int y, t_connect *connect)
{
	char	**t;

	t = connect->table;
	if (t[y][x] == t[y + 1][x + 1]
			&& t[y][x] == t[y + 2][x + 2]
			&& t[y][x] == t[y + 3][x + 3]
			&& t[y][x] != '0'
			&& t[y + 1][x + 1] != '0'
			&& t[y + 2][x + 2] != '0'
			&& t[y + 3][x + 3] != '0')
	{
		return (t[y][x]);
	}
	return (ft_check2(x, y, connect));
}
Esempio n. 2
0
int main(int argc, char **argv)
{
	if (argc == 2)
		ft_check2(ft_stock(argv[1]));
	return (0);
}