Hello,
I'll try to explain differently, sorry if it's blunt: I already did what you want. If you disagree, please prove me that I'm wrong with a specific example.
Those are the rules that I applied for the standard, no variant, Scopa game:
- If there is a single card with the same value as the one you're playing, you take that card only
- If this is not the case AND there are multiple cards whose sum matches your card, then you can take that combination of cards
- In all other cases, your card will go on the table
I believe this is what you want. And I believe this is how the code is working, otherwise I would have received dozens of people complaining about it. And it's also what I tested, repeatedly, while coding this game.
If the above rules are applied, then capturing 7+2 when there is a 9 on the table should not be possible. If you saw it happen, it may be due to many causes:
- There is a bug in my code
- There was a variant enabled that uses different rules
- There was an option enabled that uses different rules
- Somebody cheated
- There was a bug in BGA itself
- ...
I have no idea which is the correct explanation. I need a specific table and move to look into it.
Regards,
PiratJack
I'll try to explain differently, sorry if it's blunt: I already did what you want. If you disagree, please prove me that I'm wrong with a specific example.
Those are the rules that I applied for the standard, no variant, Scopa game:
- If there is a single card with the same value as the one you're playing, you take that card only
- If this is not the case AND there are multiple cards whose sum matches your card, then you can take that combination of cards
- In all other cases, your card will go on the table
I believe this is what you want. And I believe this is how the code is working, otherwise I would have received dozens of people complaining about it. And it's also what I tested, repeatedly, while coding this game.
If the above rules are applied, then capturing 7+2 when there is a 9 on the table should not be possible. If you saw it happen, it may be due to many causes:
- There is a bug in my code
- There was a variant enabled that uses different rules
- There was an option enabled that uses different rules
- Somebody cheated
- There was a bug in BGA itself
- ...
I have no idea which is the correct explanation. I need a specific table and move to look into it.
Regards,
PiratJack