Commit Graph

48 Commits

Author SHA1 Message Date
Alberto Xamin
e08e84e438
Merge ff68001976 into b45d04bf30 2024-11-12 17:15:56 +03:00
Alberto Xamin
b2b9eac1cd
really fix bandidos 2024-10-29 15:25:31 +00:00
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
344b7cc043
add cattletruck 2024-06-13 15:32:52 +03: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
72dc942901
fix miniera abbandonata 2024-06-02 16:15:48 +01:00
Alberto Xamin
3c5300e5da
fix sventagliata 2024-05-26 20:04:46 +01:00
Alberto Xamin
e3b168ff57
card event refactoring and moved wild-west-show to its own pile 2023-04-02 13:47:08 +01:00
Alberto Xamin
555e48a10a
allow for alpha status 2023-03-12 11:44:09 +00:00
Alberto Xamin
d3a056cc6a
add terenkill and youlgrinner 2023-03-11 22:51:34 +02:00
Alberto Xamin
e4f9cfc886
fix johnpain, bigspencer and tests 2023-03-05 19:49:34 +00:00
Alberto Xamin
3b568c987f
add Lady Rosa del Texas 2023-03-05 18:08:01 +00:00
Alberto Xamin
e33c2c3c48
add RegolamentoDiConti 2023-03-05 17:57:31 +00:00
Alberto Xamin
47a099d624
add wild-west-show endgame 2023-03-05 17:46:26 +00:00
Alberto Xamin
9f5d037437
add miss suzanna 2023-03-05 17:31:23 +00:00
Alberto Xamin
5811821ccf
add tests 2023-03-05 16:49:52 +00:00
Alberto Xamin
3262580592 fix blackflower 2023-02-08 13:54:43 +00:00
Alberto Xamin
decd959328 add colorado bill 2023-01-27 15:08:23 +00:00
Alberto Xamin
c4a2d67a29 add test for borraccia 2023-01-27 14:29:59 +00:00
Alberto Xamin
b998405578 add tuco tests and strings 2023-01-26 15:39:52 +00:00
Alberto Xamin
9487a59750 update dummy socket 2023-01-25 18:36:48 +00:00
Alberto Xamin
6ae2360adb
change is none checks 2023-01-23 14:50:03 +00: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
Alberto Xamin
3916408614 fix issues 2022-03-24 20:19:41 +01:00
Giulio
995853e046 fix outlaw and victory from death 2022-03-04 01:49:04 +01:00
Giulio
697e597cf9 fix pytest to work locally 2021-12-19 17:37:46 +01:00
Giulio
190d872e29 fix miniera abbandonata 2021-12-11 19:02:41 +01:00
Alberto Xamin
7f9e0bd964
work on replays
Co-authored-by: GM <giulio.migani@studenti.unitn.it>
2021-10-07 16:53:53 +03:00
Alberto Xamin
c3d3cf8171 add tests for all the base players 2021-08-20 11:36:26 +03:00
Alberto Xamin
7825a7ac85 add some character test 2021-08-19 11:18:08 +03:00
Alberto Xamin
b77c56763d
Fix multi death
Co-authored-by: GM <giulio.migani@studenti.unitn.it>
2021-08-09 17:58:36 +03:00
Alberto Xamin
c0728f0225
add test gatling win 2021-07-21 08:33:38 +03:00
Alberto Xamin
655fde3e2b
add tests on win conditions 2021-07-20 14:10:34 +03:00
Alberto Xamin
285cd28660
tests for all base cards 2021-07-04 17:29:04 +02:00
Alberto Xamin
b9d8fc5f7f
add more tests 2021-07-04 14:48:22 +02:00
Alberto Xamin
2be82a7535
fix tests 2021-07-04 14:15:55 +02:00
Alberto Xamin
b307f2bb34
add more tests 2021-07-04 12:20:38 +02:00
Alberto Xamin
e6dda2b04b
fix tests 2021-07-01 18:11:02 +02:00
Alberto Xamin
bab5e47041
test barile 2021-07-01 10:06:55 +02:00
Alberto Xamin
8f12f95679
add game tests 2021-07-01 09:48:37 +02:00
Alberto Xamin
9ca62bd5ba
fix imports 2021-06-29 14:48:33 +02:00
Alberto Xamin
2c794723c7
add backend tests 2021-06-29 14:30:05 +02:00