functions.php

<?php

class CruciblePather {



    public function play(array $heat_loss_map, int $start_x, int $start_y, int $end_x, int $end_y){

        $heat_loss = 0;


        while ($move = next_move()){

        }

        while (true){
            $this->frame();
        }

    }

    public function frame(){


        $possible_moves =
            [ 

                /** 
                 * 0 => turn amount (-1 = left, 0 = forward, 1 = right)
                 * 1 => number of spaces to move
                 */
              [-1,1],
              [-1,2],
              [-1,3],
              [0,1],
              [0,2],
              [0,3],
              [1,1],
              [1,2],
              [1,3],

            ];

        // create the list of possible moves
        // or more of a loop type of solution
        // how many options do we have?
        //
    }

}