Fun project where I could cram in some of the knowledge I gained from coding in VUE-2 and VUE-3 (With NUXT) and Python-3.
Feel free to check the game rules before playing... In its current state, the game is meant to be played on a SINGLE SHARED SCREEN.
You will need to know (among other few things) how to use the terminal command prompt in order to build + install + run this game on your own computer. If not, you can directly skip to this section.
- 0.1.0-alpha: First release
- 0.2.0-alpha: Multiple Game Sessions
"I don't want to install anything or read anything, just make it quick and easy please." I hear you say? Sure, just click here and have fun.
FRONT GUIDE
If you have Docker or Rancher installed, you can skip to this section. If you only want to run the project on your own machine, just skip to this section. If you want to build and run the project from scratch on your own machine, well, there's a bit of reading, and it starts now.
- Clone, or download + extract this project
- For
NodeJS
installation, consult the following link - For
Yarn
installation, consult the following link
Once done, open a new terminal in the directory pySET
and type the following commands to build the WebUI.
cd pySET/flask
yarn install
yarn generate
BACK GUIDE
In this section, I will assume that you either followed the building instructions above, or downloaded and extracted the latest release.
- For
Python 3
installation, consult the following link
Once done, open a new terminal in the directory pySET
and type the following command to create the python virtual environment.
python -m venv .venv
In the same terminal, activate the .venv
previously created as follow, or as shown in HowTo, and install the project's dependencies.
- Windows
.venv\Scripts\activate
pip install -U -r requirements.txt
- Unix or MacOS
source .venv/bin/activate
pip install -U -r requirements.txt
Once done, you can run the project with either
python3 server_app.py -c config.json
or
gunicorn -c gunicorn/dev_app.py
You can now open your favorite web browser and start-the-game
DOCKER GUIDE
I wrote a Dockerfile
as a training exercise and for those that want something that "just works". (Though, you have to know how Docker or Rancher works beforehand...)
cd pySET
docker build -t pyset:0.2 .
docker run -d -p 10000:10000 pyset:0.2
- "AI" player(s)
- Handle multiple clients (different screens)
- Testing scripts