Line following vs line avoiding

can a line following mouse be converted to avoid the line and bounce around sumo cicle or square using the same senser

Short answer: Yes.

Slightly longer answer: This can often be achieved simply by playing with the placement of the sensors. Or the way the motors respond to the sensor inputs. Play with it. Experiment. That’s what the hobby is about.