| summaryrefslogtreecommitdiff |
path: root/tonkadur_ui.py
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-08-30 02:14:07 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-08-30 02:14:07 +0200 |
| commit | b6108592b66cc14573e5614aa5c878b71c6be6cb (patch) | |
| tree | e6c262127a79f8142b9e0ebd443ab0af398b0aa8 /tonkadur_ui.py | |
| parent | 1609330b4e4a1ad1e3ed26db75efdab5f9729663 (diff) | |
Changes how choices are handled.
Diffstat (limited to 'tonkadur_ui.py')
| -rw-r--r-- | tonkadur_ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tonkadur_ui.py b/tonkadur_ui.py index de1001e..85f91e4 100644 --- a/tonkadur_ui.py +++ b/tonkadur_ui.py @@ -57,7 +57,7 @@ try: current_choice += 1 user_choice = input("Your choice? ") - state.resolve_choice_to(result['choices'][int(user_choice)][1]) + state.resolve_choice_to(int(user_choice)) elif (result_category == "event"): print("Unhandled event:" + str(result)) |


