Help with game devlopment

Hi i am trying to create a 2d racing game and i am stuck with code to get my AI to go around the track could any1 help??

This is what i have currently got with a million errors
// Pathfollowing + seek behaviour
// To get acceleration which updates velocity

    FollowPath(Object source, Path path, float pathOffset); 
    {
    
    float pathPosition = path.getPathPosition(source.position);
    float targetPathPosition = pathPosition + pathOffset;
    Vector target = path.getPosition(targetPathPosition);
    
    acceleration = Seek(source.position, target);
    
    Vector velocity = new Vector();
    velocity.x += acceleration.x * timeDelta;
    velocity.y += acceleration.y * timeDelta;
    // veclocity.x += acceleration.x * timeDelta;
    // veclocity.y += acceleration.y * timeDelta;
    }

Any help would be greatly appreciated thanks

What kind of errors? Syntax or logical?

I refer the honourable gentleman to my previous answer!

Thanks simo H but its mostly code i’m stuck with dont really understand it much and have this assignment sue for tues

I think they are syntax errors

You’re in trouble then! You should talk to your tutors right now and ask them for help or more time.
‘Vector’ in java doesn’t (usually) mean a 2D vector but a dynamic array - it doesn’t have an ‘x’ field. I guess you’ve been given some college code to adapt?
Anyway, talk to your teachers ASAP.