Funktionalität: eine der Kommandos zufällig auswählen
This commit is contained in:
parent
7b8ae999d8
commit
8e53a45b56
13
Bop_it.py
13
Bop_it.py
@ -1,7 +1,7 @@
|
|||||||
|
import random
|
||||||
|
|
||||||
|
def score(x):
|
||||||
def score():
|
return score
|
||||||
pass
|
|
||||||
|
|
||||||
def command_tilt():
|
def command_tilt():
|
||||||
pass
|
pass
|
||||||
@ -16,4 +16,9 @@ def command_spin():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
print("Let's play a Round of 'Rasberry says'!")
|
print("Let's play a Round of 'Raspberry says'!")
|
||||||
|
list_command_choices = [command_tilt, command_blind, command_scream, command_spin]
|
||||||
|
print(random.choices(list_command_choices))
|
||||||
|
|
||||||
|
|
||||||
|
main()
|
||||||
Loading…
x
Reference in New Issue
Block a user