[Tutor] Flood fill algorithm assistance

Mark Lawrence breamoreboy at gmail.com
Tue Aug 23 02:14:14 EDT 2022


On 22/08/2022 17:29, Dina Vincent wrote:
> Hi
> 
> I need some guidance on completing this python programme.
> 
> Some step to step guidance on the process.
> 
> 
> 
> Can you help me with two highlighted sections of this code.
> 
> The code has to  implement the flood fill algorithm, identifys and changes
> the marked pixels.
> 
>     - blank pixels are ignored.
>     - From what I understand I can use any breadth first search algorithm.
>     - If you could offer some advice on how I might proceed - Just the two
>     yellow highlighted bits
> 
> The code is partially written below.
> 
> DO NOT re-write any code. *Just need assistance where it's highlighted in
> yellow*
> 
> 
> [image: IMG_6AD92D3EFA1F-1 2.jpeg]

Sorry this is a text only mailing list so can't see anything in the image.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Tutor mailing list