From 2c297da80ff21bd26cfc02b5b9b20496c806f726 Mon Sep 17 00:00:00 2001 From: r0nk Date: Sat, 15 Aug 2020 16:32:37 -0500 Subject: [PATCH] moans --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index c127171..ac4e588 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -76,6 +76,11 @@ int exists_empty_tile(const game_state& gs){ return 0; } +void play_audio(){ + printf("playing audio...\n"); + system("mpv assets/moans/$(ls assets/moans/ | sort -R | head -n 1) > /dev/null"); +} + int main(){ srand(time(NULL)); game_state gs = {}; @@ -86,4 +91,5 @@ int main(){ while(exists_empty_tile(gs) && gs.turn != -1){ game_turn(gs, get_player_input()); } + play_audio(); }