The following document defines the class wide communication protocol that all the teams followed. It specifies how the Farmer and the DOG should communicate and the behavior when one of them loses connection. With the use of a single common protocol, all Farmers can communicate correctly with all DOGs and all DOGs can correctly follow the commands of any Farmer.
You can download the protocol here.
FARMER State Diagrams
DOG State Diagrams
Farmer's Main Code
Dog's Main Code
Main Pseudo Code
You can also download our whole program below.