Better HN
topnewbestaskshowjobs
Log inSign up

ehulinsky

27 karma · joined Sep 12, 2017 (9y ago) · 13 submissions

Creator of Analog Chess I guess
Submissions

comment 3y ago · link · parent

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 they are trying to avoid stalemate.

comment 3y ago · link · parent

wish me luck I have a duel tomorrow

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Once they intersect a piece they can keep moving, but they can't exit on the other side

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

thansk

comment 3y ago · link · parent

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.