Bang! The popular card game playable in your browser! Play with your friends in real-time!
Go to file
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
.devcontainer update devcontainer 2023-02-10 16:19:47 +00:00
.github fix outdated docker build 2024-02-23 11:09:43 +00:00
backend Fix Sventagliata to target only one player at a distance from the first target 2024-08-03 18:58:33 +01:00
frontend fix disabled cursor 2024-07-03 10:12:14 +01:00
.gitignore update gitignore for save 2023-01-27 14:49:55 +00:00
Dockerfile change node builder 2023-02-10 17:05:40 +00:00
README.md Update README.md 2024-06-03 09:10:24 +01:00

bang

This is the repo for the PewPew! game, which is a replica of BANG!. BANG! is a trademark owned by DVGiochi.

Frontend Readme

Backend Readme

bang-lobby bang-in-game