Skip to content

Commit

Permalink
Merge pull request #98 from zacowan/develop
Browse files Browse the repository at this point in the history
fallback
  • Loading branch information
zacowan authored Dec 6, 2021
2 parents ad8925d + 1d0ca0e commit abb4f34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions andy_api/api/intent_processing/intent_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ def fulfill_intent(session_id, board_str, intent_data):
elif response_type == RESPONSE_TYPES.SELECT_DIFFICULTY:
response_choice, success, updated_board_str = select_difficulty.handle(
session_id, intent_data)
else:
response_type = RESPONSE_TYPES.FALLBACK
success = False

# Intents to handle after a game has started and the user has chosen a side
elif not game_state["game_finished"]:
Expand Down Expand Up @@ -150,6 +153,9 @@ def fulfill_intent(session_id, board_str, intent_data):
response_choice, success = quit_game.handle_yes(session_id)
elif response_type == RESPONSE_TYPES.QUIT_GAME_NO:
response_choice, success = quit_game.handle_no()
else:
response_type = RESPONSE_TYPES.FALLBACK
success = False

# Intents to handle after a game has finished
else:
Expand Down

0 comments on commit abb4f34

Please sign in to comment.