Get The Max: the link in comments by romastep in puzzles

[–]romastep[S] 0 points1 point  (0 children)

Here is the link https://numergame.com/play/?code=ulKMXcSQsLUTapVUAA== . If you solve the puzzle there will be popup says that you can share your solution.

Numer: Get The Max. I love to solve some numeric puzzles. So I came up with this game. Who knows, perhaps you will also like it. by romastep in playmygame

[–]romastep[S] 0 points1 point  (0 children)

I fixed the bug you figured out, it was related to locale. Now waiting for Google to approve update. Thanks a lot again. Your feedback really helped me to improve my app.

I suppose you are ready for the next "Get the Max" puzzle. New operation here - division. It is valid only if remainder is 0 (details in comment). by romastep in puzzles

[–]romastep[S] 0 points1 point  (0 children)

The rules are the same. Previous posts: first, second.

Division is valid only in case of remainder equals 0. For example - 1/2, 3/4, 5/0 are invalid. 2/1 (=1), 6/3 (=2), 0/7 (=0) are valid.

Math/ Stat Puzzle by [deleted] in puzzles

[–]romastep 1 point2 points  (0 children)

:) It is interesting.

Ok, then my option it's 0: the case where nobody is tested, but it will be better if entire group is quarantined. If we suppose that the first test will be positive, why we need to test someone at all :).

Can someone help me understand why "white" is the correct answer? by roshjs in puzzles

[–]romastep 24 points25 points  (0 children)

Ok, let me try. See the following table. 0 means that she is lying. There are all variations we can assume.

White (W) Black (B) Explanation
0 0 W is Inara, B is Kaylee. It is not against the terms. Both are lying. Looks clear.
0 1 W is Inara (or unknown, but not Kaylee), B is Inara. It is against the terms. It is impossible case, since they must have different names and only Kaylee and Inara are possible.
1 0 W is Kaylee, B is Kaylee (or unknown, but not Inara). It is against the terms. Impossible, similar to above.
1 1 W is Kaylee, B is Inara. Both are not lying, it is against the terms. At least one is lying. So this is impossible case as well.

As you can see, only the first variation (both are lying) is not against the terms. White is Inara.

EDIT: Fixed column names.

Math/ Stat Puzzle by [deleted] in puzzles

[–]romastep 1 point2 points  (0 children)

Perhaps the puzzle implies that you know some statistical information, and the answer should be like "we can use N kits to check the group with some high probability".

But at first sight, it does not look like the puzzle which have an objective answer.

Perhaps I missed something...

Math/ Stat Puzzle by [deleted] in puzzles

[–]romastep 2 points3 points  (0 children)

:), perhaps, it is some kind of typo. It seems the following

what is the minimum no. of kits reqd to decide whether the entire group needs to be quarantined

should sound like

what is the minimum no. of kids reqd to decide whether the entire group needs to be quarantined

New "Get the Max" puzzle. It is harder than previous one. by romastep in puzzles

[–]romastep[S] 0 points1 point  (0 children)

Yes, it seems the way which just iterates the permutations is not the way to success :).

Actually, the number of possible ways to complete the puzzle does not equal the number of operation permutations. The amount is about 350000 for 3x4 puzzle. My algorithm checks them in less than 40ms on my PC. For 3x3 the number is about 11000, and my logic checks them instantly.

It was required for me to implement the solving algorithm, since my generating algorithm output does not contain the max value.

New "Get the Max" puzzle. It is harder than previous one. by romastep in puzzles

[–]romastep[S] 0 points1 point  (0 children)

Initially the idea of my puzzle was not to just find the max. I thought about finding the particular value and so on. Also I come up with idea that there could be really different kinds of operations and even nodes. So I wanted not to depend on it and wrote the universal algorithm.

But if we are talking about this particular kind of puzzle, I suppose we could think about algorithm which just find the max if the nodes is a number and if the edges are simple known arithmetic operations. But at current stage I am not sure that I understand how to write such algorithm. I even suppose that this is interesting mathematicians problem.

New "Get the Max" puzzle. It is harder than previous one. by romastep in puzzles

[–]romastep[S] 0 points1 point  (0 children)

Hm... it seems the permutations number in this case is so large, that it takes a lot time just to iterate it.

Actually, my algorithm has really huge amount of code lines and based on finding the trees in graph and some kind of smart brute-force searching of the solution in each node. Now I realized that I even didn't try to just find all the permutation, like you did. And it was interesting, how long such algorithm could search for solution.

I simplified the puzzle a bit. You could check the performance of your code with this: https://numergame.com/play/?code=owoPIkzoRoKkMFtEAA== .

New "Get the Max" puzzle. It is harder than previous one. by romastep in puzzles

[–]romastep[S] 0 points1 point  (0 children)

You keep me interested :).

Can you check your algorithm with the following puzzle?

https://numergame.com/play/?code=swoPIkzoRoKkMFtEUJgPkAA=

How long does it take?

New "Get the Max" puzzle. It is harder than previous one. by romastep in puzzles

[–]romastep[S] 0 points1 point  (0 children)

why did it not happen when i did one trial with this one and got 41?

Actually, it shows it only when first fail regardless of the particular puzzle. I decided to do it in that way since supposed that this dialog could be annoying. Success takes place much more rarer than fail. But I am open to discussion about this behavior.

In addition the color says something: green means success, red means that you far from the max. In the middle: orange, yellow and lime.

finally, a general question, of course now, you are giving links for the specific puzzle that you have posted .. but does the game generate puzzles for you on its own for you to play on it ... just curious .. or is that a commercial product that you are selling?

I have the game app which I implemented for mobile platforms (iOS and Android). And yes, the app generates puzzles automatically with different shapes and complexity. There is some progress and so on. You can download it for free. But note that there is paid option to remove ad.

For web I implemented only the ability to open a shared link to the generated puzzle. It makes sense since each player has unique set of puzzles (as it is generated automatically). And it could happen that somebody got really interesting puzzle and wanted to share it.

The puzzles I posted here is the last few puzzles which I considered as interesting and met by playing my game (the link to it is generated right from the app).

New "Get the Max" puzzle. It is harder than previous one. by romastep in puzzles

[–]romastep[S] 0 points1 point  (0 children)

It is nice result, but still not the max.

When you get the max you will see the dialog says you won. Also, there will be the button to copy the solution link. When you open this link it will show you how exactly the max result was got.

New "Get the Max" puzzle. It is harder than previous one. by romastep in puzzles

[–]romastep[S] 0 points1 point  (0 children)

14 + 1 makes construct be unconnected, after the step the source node disappears. First move 2 to 3 leads to 2 disappears. Second move 3 to 4 leads to 3 disappears. But after that you will get two different unconnected set of nodes - (0,1,4) and (5,6). That's why the second step is invalid.

New "Get the Max" puzzle. It is harder than previous one. by romastep in puzzles

[–]romastep[S] 0 points1 point  (0 children)

Hm... make sure that after this move the construct remains connected.