650 B
650 B
A/B Game
Simple choice game.
Installation
- Install
python3(andpipif needed) - Clone the Repo into
/opt/ab/ - Put A/B questions in
ab.txt - Set config variables in
config.ini - Install requirements (
pip install -r requirements.txt)
Run
Manual
- Run
chmod +x game.py - Run
./game.py
Or just run python3 ./game.py
As Service
- Install
supervisord - Copy
supervisor.confto/etc/supervisor/conf.d/abgame.conf - Reload supervisor (
supervisorctl reload)
Use
Open your browser and navigate to http://localhost:5000 or whatever you configured as bind and port in your config.ini.