From 8e53a45b56b4eda7f6e85bb68a2d6332253a08ad Mon Sep 17 00:00:00 2001 From: Franziska Gerold Date: Tue, 16 Dec 2025 19:41:00 +0100 Subject: [PATCH] =?UTF-8?q?Funktionalit=C3=A4t:=20eine=20der=20Kommandos?= =?UTF-8?q?=20zuf=C3=A4llig=20ausw=C3=A4hlen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bop_it.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Bop_it.py b/Bop_it.py index a1387e3..268d394 100644 --- a/Bop_it.py +++ b/Bop_it.py @@ -1,7 +1,7 @@ +import random - -def score(): - pass +def score(x): + return score def command_tilt(): pass @@ -16,4 +16,9 @@ def command_spin(): pass 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() \ No newline at end of file