diff --git a/16/AnimalGame.java b/16/AnimalGame.java new file mode 100644 index 0000000000000000000000000000000000000000..51f1eda36f82faca35790b777b833e6469e73644 --- /dev/null +++ b/16/AnimalGame.java @@ -0,0 +1,37 @@ +import static java.io.IO.*; + +import java.util.Random; + +// def play_animal_game(): +void play_animal_game() { + // choices = ['cow', 'dog', 'horse', 'cat', 'bird'] + // choice = choices[random.randInt(0, len(choices))] + // animal = input("Which animal am I thinking of between " + ", ".join(choices) + "? ") + // if animal == choice: + // print("Yes! It was " + choice + "!") + // else: + // print("No! It was " + choice + "!"); +} + + +/* +def play_until_exit(): + again = True + while again: + play_animal_game() + again = input("Would you like to play again (y/n)? ") + if again.lower().startswith("n"): + print("Goodbye!") + again = False + */ + void play_until_exit() { + + } + + double play_5_times() { + return 0.0; +} + + void main() { + play_until_exit(); +}