Screen shot of game running
1. Create a Virtual Environment (Recommended but not necessary):
A virtual environment isolates project dependencies from your system's Python environment, preventing conflicts.
Steps:
venv
:
python -m venv venv
2. Activate virtual Environment
venv/Scripts/activate
source venv/bin/activate
3. Install dependencies
pip install -r requirements.txt
4. Run the program
pip install -e .
startgame
frontend/GameGUI.main
setup.py
file defines this 1. Make sure the Python extension is installed
2. Run pytests discovery command to discover and run all unit tests
pytest tests/
pytest --cov=NINE-MENS-MORRIS tests/
3. Configure Testing in the sidebar
pytest
, not unittest
'test_*.py'
3. When writing new tests always put 'test_' at the front of every file name and test method name
1. We are using the Microsoft style guide and to enforce this are making use of the python plugins:
pyproject.toml
).pylintrc
)isort (config file.isort.cfg
)
2. To Apply these auto-formatters to your code run the following commands at the top of the project directory:
black .
isort .
pylint .
1. The launch.json
in the .vscode
folder contains the configuration info for running the app from the 'Run and Debug' tab in vscode
2. The IDE should detect this right away. You may need to select to use the existing configuration file in the 'Run and Debug' tab