Table of Contents
Mafia is a social deduction game, created by Dimitry Davidoff in 1986. The game models a conflict between two groups: an informed minority (the mafia team), and an uninformed majority (the Residents). At the start of the game, each player is secretly assigned a role affiliated with one of these teams. The game has two alternating phases:
-
Git clone this repository.
git clone https://github.com/zachcyrus/Team_7_Project.git
-
Change directory to the location of the repository.
cd ./Team_7_Project
-
Change directory to mafia (this is where the application is located).
cd ./mafia
-
Create a virtual environment (the method for this will change if you're on Windows)
# For Mac/Linux OS python3 -m venv venv
# For Windows OS python -m venv venv
-
Activate the virtual environment
# For Mac/Linux OS source ./venv/bin/activate
# For Windows OS .\venv\Scripts\activate
-
Install the python dependencies
pip install -r requirements.txt
-
Run the application
# For Mac/Linux OS python3 ./mafia.py 5
# For Windows OS python ./mafia.py 5
-
Make sure you have Docker installed and running if not go here.
-
Change directory to root of repository
cd Team_7_Project
-
Build the docker image based off the dockerfile in the root of the repository
docker build --build-arg LOGGER_AWS_ACCESS_KEY_ID={your_aws_access_key_kid} --build-arg LOGGER_AWS_ACCESS_KEY_SECRET={your_aws_access_key_secret} -t local_mafia_app:latest .
-
Run a docker container based off the local_mafia_app image.
docker run --name mafia_container -d -p 5000:5000 local_mafia_app:latest
-
Go to localhost:5000 in your browser to see the application running
-
When done kill the container
docker kill mafia_container
- Terraform Load balancer
- Update README
- Terraform all infrastructure possible
- Add a database
- Add multiple rooms feature