![]() Related to #513 Update the `Sventagliata` card to restrict the secondary target to be at a distance from the first target. * **backend/bang/expansions/the_valley_of_shadows/cards.py** - Modify the `play_card` method in the `Sventagliata` class to enforce distance constraints for the secondary target. - Ensure the secondary target selection logic only includes players at a distance of 1 from the first target. * **backend/tests/valley_of_shadows_test.py** - Update the `test_sventagliata` test to verify the secondary target is at a distance from the first target. - Add assertions to ensure the secondary target is correctly chosen based on the distance constraint. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/albertoxamin/bang/issues/513?shareId=XXXX-XXXX-XXXX-XXXX). |
||
---|---|---|
.. | ||
.idea | ||
bang | ||
tests | ||
Dockerfile | ||
globals.py | ||
metrics.py | ||
Readme.md | ||
requirements.txt | ||
server.py |
Bang Backend
How to get started
Development
Create a virtual env
python3 -m venv PATHTOENV
activate the new environment
souce PATHTOENV/bin/activate
now with the current directory in the backend folder install the dependencies
pip install -r requirements.txt
then you can start the python file __init__.py
, I recommend you use nodemon for that, as it will automatically reload the server on new changes. If you don't already have it, you can install nodemon with
npm i -g nodemon
then you will be able to start the server with
nodemon __init__.py