This repo contains code for multi-armed bandit algorithm testing and local multiplayer competition.
To run the application:
- Clone the repository.
git clone https://github.com/Khush-dev/multiplayer-multi-armed-bandits.git
cd multiplayer-multi-armed-bandits
pip install -r requirements.txt
- Populate params.yml (IMP: Atleast specify SERVER_IP (your own IP, in case you are hosting the server))
- To start the server:
python game_server.pyClick "Start" button on the Server window - Modify algorithm(tossed,heads) in algorithms.py
- To start an non-interactive client:
python non_interactive_client.py <USERNAME> - To start a interactive client:
python interactive_client.py <USERNAME>You can also compare different algorithms locally