recusrion python 33 programming homework help

i want a recursive function that takes in a grid (a 2d list) of  X’s and an f or two like for example:

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now

X X X X X X X X X X X

F X X X X X X X X X X

X X X X X X X X X X X

X X H X X X X X X X X

X X X X X X X X X X X

X X X X X X X X X X X

X X X X X X X X X X X

X X X X X X X X X X X

X X X X X X X X X X X 

the H is stands for house. the recursive function should check the neighboring locations close around F (north, south, east, and west) and then the function should change the X’s that neighbor the F to F’s and change the old F to D like this:

  F  X  X  X  X  X  X  X  X  X  X

  D  F  X  X  X  X  X  X  X  X  X

  F  X  X  X  X  X  X  X  X  X  X

  X  X  H  X  X  X  X  X  X  X  X

  X  X  X  X  X  X  X  X  X  X  X

  X  X  X  X  X  X  X  X  X  X  X

  X  X  X  X  X  X  X  X  X  X  X

  X  X  X  X  X  X  X  X  X  X  X

  X  X  X  X  X  X  X  X  X  X  X

F’s can only move one space at  a time and i should be able to control howmany times it runs but that doesnt nessarly need to be in the function itself

use example file as guide

 

Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code “Newclient” for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.

The post recusrion python 33 programming homework help appeared first on Nursing Writers Hub.

 

“Are you looking for this answer? We can Help click Order Now”