Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
?
lecture-code
Commits
16b893fa
Commit
16b893fa
authored
5 months ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Update AnimalGame.java
parent
03f49247
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
16/AnimalGame.java
+1
-1
16/AnimalGame.java
with
1 addition
and
1 deletion
+1
-1
16/AnimalGame.java
View file @
16b893fa
...
...
@@ -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 + "!")
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment