is there any php genius?

i got lost.

is there any genius?

two side random matching

Group A-1: 4000 or higher
Group A-2: 6000 or higher

Group B-1: 5000 or higher
Group B-2: 5000 or higher

Rule 1.

  1. one pair can be one of Group A and one of Group B.

  2. Group B-1 should be paired with group A-1 until all members in Group A-1 have a mate.

if there is no more member in Group A-1, Group B-1 can be matched with members in Group A-2.

Rule 2.

  1. there is a open card in member’s mypage. a member can see who is their mate after openning a card. (if they do not open, they cannot see who their mate is.)

if member x in Group B-1 opened member y in Group A-1, member y’s card will member x in Group B-1 when member x opens the card.

  1. all members have only one mate in a day. their mate must be changed in the next day. (no same pair as yesterday!)

  2. the number of members in each group is not fixed.

so if the number in Group A is 9,000 and the number in Group B is 10,000, all member in Group B will have only one mate but 1,000 members in Group A will have two mates.

Any help is appreciated!!

If you have at least a portion of code., it would not only help us better understand what you’re trying to accomplish but yourself as well…

Please try creating it yourself and post your code when you get stuck and I’m sure someone would gladly help guide you in the right direction.

Remember, this is “PHP Help”, not “PHP Do it all for me”. ;D

Sponsor our Newsletter | Privacy Policy | Terms of Service