All it needs is a robot that says: "Come Here Boy, Come! That's a good doggie."
If the animal comes, it's a dog. If it continues without looking at you, it's a cat.
If the animal comes, it's a dog. If it continues without looking at you, it's a cat.
/joke session
And then read the comments and detect indicative words or expressions connect with each animal
if (human.feedanimal() == true) { animal.type = "Dog"; human.name = "GOD"; }else{ animal.type = "Cat"; animal.name = "GOD"; }
Incorrect. The cat doesn't depend on your validation of its status; if you feed it, you just increase the chance that it thinks you are a subject worthy of its time and attention.