Skip to content

Commit f388a69

Browse files
committed
fix: добавлено сообщение "Ваш ход!" в текст и TTS для предыдущего хода
1 parent 4896c1e commit f388a69

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

handlers/special_intent_handler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ def handle(self):
2626
last_move = self.game.get_last_move()
2727
comp_color = 'WHITE' if self.game.get_user_color() == 'BLACK' else 'BLACK'
2828
if last_move:
29-
text, text_tts = self.prep_text_to_say(comp_move=last_move, prev_turn=comp_color, text_to_show=self.game.get_board() + '\nВаш ход!', text_to_say='')
29+
text, text_tts = self.prep_text_to_say(comp_move=last_move, prev_turn=comp_color, text_to_show=self.game.get_board(), text_to_say='')
3030
text = texts.resume_text + '\n' + text + '\nВаш ход!'
31+
text_tts = texts.resume_text + '\n' + text_tts + '\nВаш ход!'
3132
else:
3233
text = texts.resume_text + '\n' + self.game.get_board() + '\nВаш ход!'
33-
text_tts = texts.resume_text + '\n' + 'Показала доску на экране. sil <[60]>'
34+
text_tts = texts.resume_text + '\n' + 'Показала доску на экране. sil <[60]>'+ '\nВаш ход!'
3435
return self.say(text, tts=text_tts)
3536
else:
3637
state_text = texts.state_texts.get(self.game.get_skill_state(), '')

0 commit comments

Comments
 (0)