@__paleologo@alz_zyd_ Seems the most like a "colonel blotto"-type game where generals allocate resources over N battlefields (which has also been used to study campaigning contests to win the most electoral college votes; here, states are "matches" in the tennis game).
@alz_zyd_ I think for d+1 keys and d doors, switching doors and switching keys is the exact same, *except* when you have the dud key. Better to pick a door and match keys to it (strat 2), since none of the doors are duds.
@alz_zyd_ If k1 fails on A, it's either B or dud w/ equal prob. Now, trying it on B has prob 1/2 of success; so does switching keys on A.
If trying k1 on B fails, though, it's the dud, so your next guess is 50-50. If you switched keys and failed, your next guess is 100%.