Skip to content

Instantly share code, notes, and snippets.

@MightyPork
Created December 29, 2018 09:12
Show Gist options
  • Save MightyPork/a7d63214a62a6be78b20681268a7b738 to your computer and use it in GitHub Desktop.
Save MightyPork/a7d63214a62a6be78b20681268a7b738 to your computer and use it in GitHub Desktop.
Rust animals game sample output
----- NEW GAME -----
Secret animal is: duck
What animal is it?
> duck
Game ended.
----- NEW GAME -----
Secret animal is: dog
Is it a duck?
> no
What animal is it?
> dog
How to tell apart dog and duck?
> Does it quack?
What is the answer for dog?
> no
Learned a new animal: dog
Game ended.
----- NEW GAME -----
Secret animal is: wolf
Does it quack?
> no
Is it a dog?
> no
What animal is it?
> wolf
How to tell apart wolf and dog?
> Is it wild?
What is the answer for wolf?
> yes
Learned a new animal: wolf
Game ended.
----- NEW GAME -----
Secret animal is: cow
Does it quack?
> no
Is it wild?
> no
Is it a dog?
> no
What animal is it?
> cow
How to tell apart cow and dog?
> Does it woof?
What is the answer for cow?
> no
Learned a new animal: cow
Game ended.
----- NEW GAME -----
Secret animal is: pig
Does it quack?
> no
Is it wild?
> no
Does it woof?
> no
Is it a cow?
> no
What animal is it?
> pig
How to tell apart pig and cow?
> Does it give milk?
What is the answer for pig?
> no
Learned a new animal: pig
Game ended.
----- NEW GAME -----
Secret animal is: goat
Does it quack?
> no
Is it wild?
> no
Does it woof?
> no
Does it give milk?
> yes
Is it a cow?
> no
What animal is it?
> goat
How to tell apart goat and cow?
> Is it grown for meat?
What is the answer for goat?
> no
Learned a new animal: goat
Game ended.
----- NEW GAME -----
Secret animal is: raven
Does it quack?
> no
Is it wild?
> yes
Is it a wolf?
> no
What animal is it?
> raven
How to tell apart raven and wolf?
> Does it fly?
What is the answer for raven?
> yes
Learned a new animal: raven
Game ended.
----- NEW GAME -----
Secret animal is: boar
Does it quack?
> no
Is it wild?
> yes
Does it fly?
> no
Is it a wolf?
> no
What animal is it?
> boar
How to tell apart boar and wolf?
> Does it eat acorns?
What is the answer for boar?
> yes
Learned a new animal: boar
Game ended.
===== Testing known animals =====
----- NEW GAME -----
Secret animal is: cow
Does it quack?
> no
Is it wild?
> no
Does it woof?
> no
Does it give milk?
> yes
Is it grown for meat?
> yes
Is it a cow?
> yes
Yay, found an answer!
Game ended.
----- NEW GAME -----
Secret animal is: dog
Does it quack?
> no
Is it wild?
> no
Does it woof?
> yes
Is it a dog?
> yes
Yay, found an answer!
Game ended.
----- NEW GAME -----
Secret animal is: wolf
Does it quack?
> no
Is it wild?
> yes
Does it fly?
> no
Does it eat acorns?
> no
Is it a wolf?
> yes
Yay, found an answer!
Game ended.
----- NEW GAME -----
Secret animal is: duck
Does it quack?
> yes
Is it a duck?
> yes
Yay, found an answer!
Game ended.
----- NEW GAME -----
Secret animal is: pig
Does it quack?
> no
Is it wild?
> no
Does it woof?
> no
Does it give milk?
> no
Is it a pig?
> yes
Yay, found an answer!
Game ended.
----- NEW GAME -----
Secret animal is: goat
Does it quack?
> no
Is it wild?
> no
Does it woof?
> no
Does it give milk?
> yes
Is it grown for meat?
> no
Is it a goat?
> yes
Yay, found an answer!
Game ended.
----- NEW GAME -----
Secret animal is: raven
Does it quack?
> no
Is it wild?
> yes
Does it fly?
> yes
Is it a raven?
> yes
Yay, found an answer!
Game ended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment