Find all of the SETs - A possible New Problem

Back to General discussions forum

CSFPython     2023-03-05 14:23:20

I came across a card game called SET at Christmas but was not very good at it! I thought it would make a good implementation problem.

Rodion, the relevant files are in your e-mail.

Rodion (admin)     2023-03-06 19:43:00
User avatar

Dear Clive, Hi!

Thanks a lot, I applied the files and it works immediately, as usual. I had a kind of cascade of feelings reading through the explanations: starting with thought it is a game similar to Rummy (much wrong, seems now) - ending with feeling that it really requires extraordinary perceptive skills. I wonder if statistics for this game show that, perhaps, women are better in it as there is suggestion women easier concentrate on several items at once...

CSFPython     2023-03-06 20:15:17

Rodion,

You may well be right about women being good at the game. I haven't played it enough to know to what extent this is true. My son is very good at this kind of mental process but he has always been much better than me at visualising things in 3D. There could well be a connection between this and the ability to deal successfully with the requirements of SET.

gardengnome     2023-03-06 23:16:43
User avatar

Thank you! And I blame zelevin for my solution ... ;)

zelevin     2023-03-07 00:54:57

Thanks for the problem, Clive, and thanks for the blame / credit, Mathias. My solution is extremely similar to yours, although I managed to avoid indexing the properties.

Interestingly enough, my sister once wrote a paper that compared the combinatorial nature of this game to that of quantum chromodynamics.

sam_bandara     2023-03-28 02:52:38

Hi All, My version bit looks like unzip version of Zelevin and gardengnome :-)

kostis_k     2023-03-31 09:35:46
User avatar

@sam_bandara It's pretty impressive, because they are practically one-liners. Of course, your solution is full of for loops whereas especially in zelevin's case it's obvious that it's a functional approach that greatly shortens the code. Mostly, I'm happy to find a solution, but code brevity is an art form in it's own right, and a great flex!

sam_bandara     2023-04-04 01:28:11

Thanks Mate!! First time I heard about "Haskell"

gardengnome     2023-05-24 18:35:46
User avatar

Just came across this: Meta-set.

CSFPython     2023-05-30 08:17:47

I've taken a look at the Meta-set problem. It is certainly very much more demanding than the simple implementation exercise that I set. There is clearly scope for a number of different problems on this theme.

Please login and solve 5 problems to be able to post at forum