fscanf($fh, "%d", $testCases);
    for ($a = 1; $a <= $testCases; $a++) {
        fscanf($fh, "%d", $ladderCount);
        $ladders = [];
        for ($b = 1; $b <= $ladderCount; $b++) {
            fscanf($fh, "%d %d", $bottom, $top);
            $ladders[] = new Ladder($bottom, $top);
        }
        fscanf($fh, "%d", $snakeCount);
        $snakes = [];
        for ($c = 1; $c <= $snakeCount; $c++) {
            fscanf($fh, "%d %d", $mouth, $tail);
            $snakes[] = new Snake($mouth, $tail);
        }
        $board = new Board($ladders, $snakes);
        echo $board->minimumDiceRolls() . PHP_EOL;
    }
}
/**
 * Responsible for finding the minimum number of dice-rolls to get from square 1
 * to square 100.
 */
class Board
{
    /**
     * const int MIN_POSITION Lowest number of a square on the board.
     * const int MAX_POSITION Highest number of a square on the board.
     */
    const MIN_POSITION = 1;
    const MAX_POSITION = 100;
    /**