Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ehulinsky
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
ehulinsky
4y ago
Also the game only has a resolution of 640x640 pixels, and you cant move the mouse a half pixel. But anyways, stalemate basically requires very precise positioning by the attacker, so it is VERY unlikely to actually happen, especially since
2.
▲
by
ehulinsky
4y ago
wish me luck I have a duel tomorrow
3.
▲
by
ehulinsky
4y ago
The problem is that it needs to check every position that the king can move to as well. Doing it based on pixels would be extremely slow, and doing it based on the math seems like a nightmare, unless I am missing something.
4.
▲
by
ehulinsky
4y ago
They have a diameter of 0.7 squares but that can be changed in the code. As it is they are just below sqrt(2)/2 so that the bishops can escape diagonally.
5.
▲
by
ehulinsky
4y ago
I think the number of moves approaches infinity as the diameter approaches sqrt(2)/2, as the current diameter is 0.7 squares so that rooks can escape diagonally. Could be interesting to look into.
6.
▲
by
ehulinsky
4y ago
Yeah I just forgot the word continuous and never changed the name lol. But my thought process is that an analog clock moves smoothly instead of being restricted to minutes, and analog circuits are continuous.
7.
▲
by
ehulinsky
4y ago
The idea of it was driving me mad and I had no way to test it, so I just sat down for 8 hours and made the first version.
8.
▲
by
ehulinsky
4y ago
Once they intersect a piece they can keep moving, but they can't exit on the other side
9.
▲
by
ehulinsky
4y ago
I didn't have it originally, but because of how much more complex the movement in this game is, it was almost impossible to avoid blundering everything.
10.
▲
by
ehulinsky
4y ago
Adding the knook would be pretty simple actually. I'd just need to combine the code for the rook and the knight and then make a function to snap the mouse position to the right closest point on the crosshair shape.
11.
▲
by
ehulinsky
4y ago
Yeah, I basically tried to get as close to the normal moves as possible while also keeping it simple. Also all of the pieces in Analog Chess are so overpowered I think it's ok that the knight is buffed a little bit.
12.
▲
by
ehulinsky
4y ago
thansk
13.
▲
by
ehulinsky
4y ago
Holy shit, that would be amazing! I released this mainly because I really want to know what the best strategies are and how different it is from normal chess.