How to code a sumo robot with only 4 motors one optimal sensor and distance sensor

I need help with coding my robot because I have untill tuesday I have to code my robot untill a event (for robotics club) If anyone can help me with my optimal first (its sensing a white line not a black line) plz help:)