The infrastructure for a mobile participation game where players guess songs and answer questions on their mobile devices. The answers are sent using rabbitmq to a server, so the admin can assign points to the teams without the teams seeing each others answers.
- ffmpeg
- yt-dlp
First, install all python dependencies with pip install -r requirements.txt
.
Then, run the associated docker containers with docker-compose up -d
.
Prepare the database with python -m src.db.build
.
Next, download and split all videos with
python -m src.videos.downloader -d
python -m src.videos.splitter
Now you can start the game with
python start.py <number of players>
Several different websites will be hosted under different ports. See here:
server.py
(localhost:7999) for receiving the mobile hosts answers and assigning pointsmonitor.py
(localhost:8000) for displaying the current game state and playing the songshost.py
(localhost:8001-80XX) for hosting websites for the mobile hosts to answer the questions. Each Team recieves a different website/port