diff --git a/16/AnimalGame.java b/16/AnimalGame.java index 51f1eda36f82faca35790b777b833e6469e73644..7d07a5eb9aeac8711cc1141e6ce62f895f576fed 100644 --- a/16/AnimalGame.java +++ b/16/AnimalGame.java @@ -5,7 +5,7 @@ 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))] + // choice = choices[random.randInt(0, len(choices)-1)] // animal = input("Which animal am I thinking of between " + ", ".join(choices) + "? ") // if animal == choice: // print("Yes! It was " + choice + "!")