Skip to content

Game project (Implementation of the SET! real-time card game designed by Marsha Falco in 1974) where I could cram in some of the knowledge I gained from coding in VUE-2 / VUE-3 and Python-3

License

Notifications You must be signed in to change notification settings

Luraminaki/pySET

Repository files navigation

SET

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.

VERSIONS

  • 0.1.0-alpha: First release
  • 0.2.0-alpha: Multiple Game Sessions

TABLE OF CONTENT

TL;DR

"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.

INSTALL AND BUILD GUIDE (WebUI - Front)

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

INSTALL AND START GUIDE (Server - Back)

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

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

POSSIBLE FUTURE UPDATES

  • "AI" player(s)
  • Handle multiple clients (different screens)
  • Testing scripts

About

Game project (Implementation of the SET! real-time card game designed by Marsha Falco in 1974) where I could cram in some of the knowledge I gained from coding in VUE-2 / VUE-3 and Python-3

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published