Dog training for Developers - The basics: Lie down

24 nov 2014

This is the last post of this series and I hope now you and your dog are an awesome team!

Today I will give you the tips to the lie down command, a nice complement to the Sit command.

Dog lie down

I hope you have liked this series. If you want to have some more tips please let me know, I would be glad to know.

And remember, be patient as always :)

public void LieDown()
{
    var snack = _teacher.GrabNewSnack();
    _teacher.Sit();

    Sit();
    do
    {
        //Wait until dog is sitting
    } while (!_dog.IsSitting);

    for (int i = 0; i < 5; i++)
    {
        do
        {
            //your hand to the middle of his legs
            //move your hand slowly
            _teacher.MoveHandDown();
        } while (!_dog.IsLying);

        _teacher.Say("Lie down!");
        _teacher.GiveToDog(snack);

    }
}
comments powered by Disqus