From aed68125ae6a264e0eb42c0c5623a91c93ae27c0 Mon Sep 17 00:00:00 2001 From: Zachary Cowan <44091329+zacowan@users.noreply.github.com> Date: Mon, 6 Dec 2021 11:53:27 -0500 Subject: [PATCH 1/2] fix(responses): updated responses --- andy_api/api/intent_processing/move_piece.py | 2 +- andy_api/api/intent_processing/restart_game_no.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/andy_api/api/intent_processing/move_piece.py b/andy_api/api/intent_processing/move_piece.py index ad472b2..0ac3948 100644 --- a/andy_api/api/intent_processing/move_piece.py +++ b/andy_api/api/intent_processing/move_piece.py @@ -49,7 +49,7 @@ ] ILLEGAL_MOVE_ERROR_RESPONSES = [ - "Actually, that move would be against the rules, so you can't do it.", + "Actually, that would be against the rules, so you can't do it.", "Oh, that's an illegal move. Could you give me a different one?" ] diff --git a/andy_api/api/intent_processing/restart_game_no.py b/andy_api/api/intent_processing/restart_game_no.py index f839743..da0ae4c 100644 --- a/andy_api/api/intent_processing/restart_game_no.py +++ b/andy_api/api/intent_processing/restart_game_no.py @@ -6,7 +6,7 @@ HAPPY_PATH_RESPONSES = [ "Okay - let's continue playing then.", - "Okay - let's finish this round then." + "Okay - let's finish this game then." ] From b1d374384cceb545cec0c8ff00f964b60888b022 Mon Sep 17 00:00:00 2001 From: Zachary Cowan <44091329+zacowan@users.noreply.github.com> Date: Mon, 6 Dec 2021 12:00:08 -0500 Subject: [PATCH 2/2] fix(timer): fixed timer when gameStarted False --- chess_client/client/audio_detection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chess_client/client/audio_detection.py b/chess_client/client/audio_detection.py index c1d871a..1061012 100644 --- a/chess_client/client/audio_detection.py +++ b/chess_client/client/audio_detection.py @@ -49,7 +49,7 @@ def run(): # If we don't detect anything and we exceed a timeout, tell the user we can provide them with a move if not detected_text: - if timer_counter.check_timer(): + if game_engine.isGameStarted and timer_counter.check_timer(): print("TRIGGER") timer_counter.stop_timer() audio_response = get_help_response("TIMEOUT")