Is there an easier way to pass an array through a recursive method than to convert it to a string and re assembling it again inside the method to keep the previous instance of that array for use inside a gametree.
the method only loops till desired depth is reached and bubbles up till all possible game states are mapped.
Example c#:
public class Gametree
{
  private char[] mapArr;
  private void execute(char[] map){
    mapArr = map;
    //do stuff to mapArr//
    var child = new Gametree();
    child.execute(mapArr);
  }
}
 
     
    