First make sure your Python version >= 3.10.
Create a venv
, activate it and install packages in requirements.txt
.
Run the code below in Shell or Terminal.
source ./scripts/sh/venv.sh
(If you use Powershell, then ./scripts/ps1/
contains corresponding .ps1
scripts)
After venv
is setup, you may run ./scripts/sh/cli.sh
and play a game to
see if the project is running correctly.
(or simply run ./scripts/sh/test.sh
to unittest the whole project)
Generally follow autopep8
- Line length limit is 100
- Use
snake_case
for methods, functions or variables - Use
PascalCase
for class names - Use
ALL_CAPITAL
for constants or enums - Always type hint any functions/methods you wrote
- Commits naming should briefly describe what is done in the commit
- e.g.
implements the card Starsigns
orupdates README on changes in root-level api
- don't give empty commits or commits merely stating which files are changed
- e.g.