Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
madez
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
157 ms
·
1351.
▲
by
madez
12y ago
> Copy paste is disabled remember... s/The user just copy and pastes it into the game./The user emulates his keyboard typing that string. I don't see the point in this. It's just adding noise instead of talking about
1352.
▲
by
madez
12y ago
@readerrrr: I'm commenting here because HN doesn't let me comment your comment. > You can always make the game itself harder on top of all the anti-bot tricks. You are implying two things here. Firstly, that its' always po
1353.
▲
by
madez
12y ago
You can just analyze the graphical output of the browser and hence make your hack useless. The underlying problem of this game is just too easy to solve.
1354.
▲
by
madez
12y ago
(x+1) * max(0, sign(x)) * (1-max(0, sign(x-1/sqrt(2)))) + (1+1/sqrt(2)) * (1-max(0, sign(x-1/sqrt(2)-1))) * max(0, sign(x-1/sqrt(2))) + (-x+sqrt(2)+2) * max(0, sign(x-1/sqrt(2)-1)) * (1-max(0, sign(x-sqrt(2)-1)))
1355.
▲
by
madez
12y ago
I assume it to be not doable but that in no way fixes the problem that its easy to write a tool that plays perfectly.
1356.
▲
by
madez
12y ago
Yeah. I loved playing with the graph function. I felt so powerful to define curves and can see them being plotted.
1357.
▲
by
madez
12y ago
Even heavily restricting the function to only use addition and multiplication doesn't solve the problem.
1358.
▲
by
madez
12y ago
In the general case that is not possible. If there is a block vertically in between of two opponents you can not destroy both in one turn.
1359.
▲
by
madez
12y ago
Its easy to write a tool that produces a function in every round using step functions that kills the maximal number of enemys. I love this kind of game so I think its very sad that I don't see a way to rescue it. Even if you would rest
1360.
▲
by
madez
12y ago
I was surprised to see that many people didn't know how to define a step function. One way to do it is: size_of_jump*max(0, sign(x-position_of_jump)). Also, max(0, sign(x-position)) allows you to switch on and off other parts of your f