Power of Thor - Codesize - Puzzle discussion

Of course I have really tried the problem. You may read my profile to see how top I rank in this problem. And I can tell you that I haven’t done any hardcoding in my solutions to get to the ranks I’m currently at now. It’s just unfair for you to say that all top solutions aren’t legit.

(And I find that your solutions are also top ranked too, I hope they’re legit?)

Having said that, I would also like to see more cases added to this puzzle and all solutions be re-ranked.

You’re at 102b in python and 88b in ruby.
And I think you’re out of touch with the top of the leaderboard, but I may be wrong. If you think that the top solutions are legitimate… I let you think what you want. Anyway, I said what I had to say.

2 Likes

Wait no!!! I have more to say!
Please score in bytes and not in chars.
This is really important.

I’ve never denied that some of the top solutions have hardcoding elements. But if you refer to specific languages only, then please be specific. Just don’t claim that “absolutely all top solutions arent legit”, especially when that statement also covers your very own solution (and mine).

Absolutely all top solutions in TOP30 (actually im also sure about TOP47) arent legit. And you’re not in this top.

1 Like

So you mean the top solutions in the all-languages leaderboard? I seldom check that - that’s why I didn’t understand what you referred to until just now. I assumed you meant the individual language-specific leaderboards, so that’s why I thought your claim covered the solutions of yours and mine.

My view is this: no matter those top codes are legit or not, I would like to see more cases added to this puzzle and all solutions be re-ranked.

3 Likes

This would disqualify hardcoded solutions (for a moment, but not forever, new harcoded solutions will appear). But it won’t disqualify solutions including system calls, which is worse in my opinion, because harcoding is an interesting practise, whereas system calls gives the advantage to some languages.

For example, if you’re very good in bash and you know how to do a system call in C++ (but there are many others langages involved), you don’t need to be good in C++ to win against all other C++ players.

If CG forbid hardcode, please forbid system calls to. I don’t think it is so difficult, you just have to check some keywords depending on language.

2 Likes

You’re 100% right

Hi, where/how can I see the best solutions?

You cannot see the best solutions to code golf puzzles. However, you can see the solutions to the non-code golf versions, e.g. here.

Thanks, it just does not make much sense when I cannot see better solutions to learn what I could improve.

As i agree with you, the point of code golf is a challenge, if everyone had the best answer, they wouldn’t be able to compete fairly.

you can always figure out the full range of moves, and print each option randomly, this brings it down to 66 or so letters… but the randomness is so astronomical, that you are just a lucky SOB if you get it.
if i were to guess, it’s around 5^20? 30? some massive number, not impossible. but not in your favor. 5^20 is around 95 trillion.
you could even reduce this drastically but then it jumps to 70 or 75 characters. and it’s random chance.

import random
while 1:print(random.choice([“viableDirections”]))

3 posts were merged into an existing topic: Power Of Thor - Episode 1 - Puzzle discussion

I think the purpose here is to make you get out of your confort zone, make you think out of the box. Also, this kind of exercise make me thik that we are training a AI that focus in generate the best “compiled code chunk”.

A post was merged into an existing topic: Power Of Thor - Episode 1 - Puzzle discussion

My code size is 312 with Python.

I don’t know too!

I take the code that use in the first part and its working, only need to add one line tricked:

 # East = E = ( tx < lx ) to the RIGHt
  if lx > tx
    direction << "E"
    tx += 1
  end

Maybe so. I also am a bit annoyed cause sometimes the direction is not as precise. Or it could be my lack of understanding