0 Members and 2 Guests are viewing this topic.
myfunc([address of Old], [address of New]){ (Pick a cell from a set in Old and copy it to New) (Remove Wall between them) For(i = 1; Width; i++) { if(!part of a set) { Random(0, 1) If (1) { (Copy cell from Old to New) (Remove Wall) } else { (Make new cell here) if(rand(0,1)) (copy cell from left and remove wall) } }}myfunc(New, Old)//Notice I switched old and new so that in the func, New becomes Old and vice versa