The rules of the Sheep and Wolves puzzle are identical to those of the China Wall. You need to draw a closed path that goes along the borders of the table cells. The numbers (from 0 to 3) are equal to the number of contour segments along the cell perimeter. In addition, an additional condition applies. All sheep must remain inside the contour, and wolves must remain outside.
To make the decision easier, you can mark the borders that you have precisely determined as missing, you can use the right mouse button.