Commit Graph

10 Commits

Author SHA1 Message Date
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
Alberto Xamin
da7e4834b7
refactor pending action 2024-06-10 17:22:30 +01:00
Alberto Xamin
e08c7162a1
fix Mira 2024-06-02 16:24:37 +01:00
Alberto Xamin
3c5300e5da
fix sventagliata 2024-05-26 20:04:46 +01:00
Alberto Xamin
2b4643b237 add game save 2023-01-20 20:57:30 +00:00
Alberto Xamin
edeefa28c6
add attack queue 2023-01-13 17:50:50 +00:00
Alberto Xamin
63e0892cc3
add test for poker and tornado 2023-01-13 16:01:44 +00:00
Alberto Xamin
3972df1809
fix bandidos and add taglia test 2023-01-13 15:52:58 +00:00
Alberto Xamin
ed057502d6 add ritorno di fiamma 2023-01-07 11:15:40 +00:00
Alberto Xamin
0668fbf670 add fantasma, serpente a sonagli 2023-01-06 17:16:18 +00:00