bang/backend
Alberto Xamin ff68001976 Fix Sventagliata to target only one player at a distance from the first target
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).
2024-08-03 18:58:33 +01:00
..
.idea started working on frontend 2020-11-19 21:34:25 +01:00
bang Fix Sventagliata to target only one player at a distance from the first target 2024-08-03 18:58:33 +01:00
tests Fix Sventagliata to target only one player at a distance from the first target 2024-08-03 18:58:33 +01:00
Dockerfile removed dd-trace 2023-01-12 11:37:40 +01:00
globals.py refactor pending action 2024-06-10 17:22:30 +01:00
metrics.py refactor metric collection 2022-03-25 15:29:28 +01:00
Readme.md fix game not ending on sheriff death 2021-03-01 17:10:54 +01:00
requirements.txt Merge pull request #497 from albertoxamin/dependabot/pip/backend/eventlet-0.35.2 2024-05-26 20:06:13 +01:00
server.py add better info screen 2024-06-15 18:58:06 +03:00

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