Computer simulations of the behaviour are nowadays used almost everywhere: games, movies, robotics, etc. The purpose of developing models of behaviour is to recreate as closely as possible the natural behaviour of animals, such as birds, fish, insects, sheep. The purpose of the thesis was to examine the latest models of the behaviour of sheep and the sheepdog. The paper presents the implementation of two sheep behaviour models and one dog behaviour model. Algorithms are summarized according to two articles Strömbom, D., et al. (2014), Solving the shepherding problem: heuristics for herding autonomous, interacting agents, doi: 10.1098/rsif.2014.0719 and Ginelli, F., et al. (2015), Intermittent collective dynamics emerge from conflicting imperatives in sheep herds, doi: 10.1073/pnas.1503749112, both of which were as the main guidelines in the creation of the simulation, and then there were added a few improvements. Tests have been made, in which we observed the success of the sheepdog model with both sheep models, at the different sized herds.