feat: Chess v1.8

This commit is contained in:
Struan Clark
2023-08-12 12:09:05 -06:00
parent 5e710916d6
commit 2c412d9281
28 changed files with 11161 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
#include "flipchess_voice.h"
#include <furi.h>
#include <furi_hal.h>
#include "../sam/stm32_sam.h"
STM32SAM voice;
void flipchess_voice_shall_we_play() {
if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
voice.begin();
voice.say("SHAAL WE PLAY AY GAME?");
furi_hal_speaker_release();
}
}
void flipchess_voice_which_side() {
if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
voice.begin();
voice.say("WHICH SIDE DO YOU WANT?");
furi_hal_speaker_release();
}
}
void flipchess_voice_how_about_chess() {
if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
voice.begin();
voice.say("HOW ABOUT A NICE GAME OF CHESS?");
furi_hal_speaker_release();
}
}
void flipchess_voice_a_strange_game() {
if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
voice.begin();
voice.say("A STRANGE GAME... THE ONLY WINNING MOVE IS NOT TO PLAY.");
furi_hal_speaker_release();
}
}