Simple A/B choice game
https://ab.21x9.org
89d0cfa468 | ||
---|---|---|
static | ||
templates | ||
LICENSE | ||
README.md | ||
ab.txt | ||
config.ini | ||
game.py | ||
requirements.txt | ||
supervisor.conf |
README.md
A/B Game
Simple choice game.
Installation
- Install
python3
(andpip
if 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.conf
to/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
.