Quadruped walking code

I’m developing a quadruped and i have problems with making the walking code in arduino.Simply i don’t know how it must work.Can anyone post a code from his quadruped so i can see the basic ideea?It’s a 8 servo sg-90 robot.