L
Legacy 143009
Guest
Hi guys!
I have a question. At first look it seems easy but I am a little bit confused now...
Anyway, I'll try to explan.
Let's say it's a card game;
I select 5 cards from a suit. They are in A1:A5. At least 2 of them should be the same shape in this case. I am sorting them by shape and let's say two clubs will be on top. The script that I want should solve which club to pick to B1. The rule is, the club it picked should be 1,2,3,4,5 or 6 smaller than the club remained in the 4-card group.
The difficult side for me is to set up a logic for what if I select same shaped cards more than 2. For example 3 or 4 clubs or 5?.. What kind of a script can resolve this condition.
For example:
The code should pick 4 because I can go to 4 going backwards only three from 7. Antoher thing;
Let's say the clubs are 11(J) and 2, it should pick 2 because you can go to 11 only descending the number by four.
The maximum limit is six for going back. And the same cards may be more than two.
It is very difficult to tell... I know. My english is insufficient for this. If you wonder about something please don't hesitate to ask.
Thanks a lot fom this very moment!
I have a question. At first look it seems easy but I am a little bit confused now...
Anyway, I'll try to explan.
Let's say it's a card game;
I select 5 cards from a suit. They are in A1:A5. At least 2 of them should be the same shape in this case. I am sorting them by shape and let's say two clubs will be on top. The script that I want should solve which club to pick to B1. The rule is, the club it picked should be 1,2,3,4,5 or 6 smaller than the club remained in the 4-card group.
The difficult side for me is to set up a logic for what if I select same shaped cards more than 2. For example 3 or 4 clubs or 5?.. What kind of a script can resolve this condition.
For example:
The code should pick 4 because I can go to 4 going backwards only three from 7. Antoher thing;
Let's say the clubs are 11(J) and 2, it should pick 2 because you can go to 11 only descending the number by four.
The maximum limit is six for going back. And the same cards may be more than two.
It is very difficult to tell... I know. My english is insufficient for this. If you wonder about something please don't hesitate to ask.
Thanks a lot fom this very moment!
Last edited by a moderator: