Educational game to estimate Greek π using "Monte Carlo" Method.
pip3 install -r requirements.txt./pi_contestpoetry is a useful Python build system and package manager. If you don't have it, you can install it with:
pip install poetrypoetry installpoetry run ./pi_contestAlternatively, you can build a docker container using the provided Dockerfile with:
docker build . -t pi_contestdocker run -it --rm \
-e DISPLAY=${DISPLAY} \
--volume="${HOME}/.Xauthority:/root/.Xauthority:rw" \
--volume=/tmp/.X11-unix:/tmp/.X11-unix \
--device /dev/input/event13 \
--device /dev/input/event11 \
pi_contestIf it doesn't work, you may need to run
xhost +local:dockerCurrently, the dependencies of this project are mainly managed with poetry, which is also used to generate a requirements.txt file for pip.
First, regenerate the dependencies in the poetry.lock file with:
poetry updateThen, regenerate the requirements.txt file with:
poetry export -f requirements.txt -o requirements.txt