Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Sventagliata to target only one player at a distance from the first target #514

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

albertoxamin
Copy link
Owner

@albertoxamin albertoxamin commented Aug 3, 2024

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.

…st 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).
Copy link

vercel bot commented Aug 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bang ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 3, 2024 5:58pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant