HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ehulinsky

no profile record

comments

ehulinsky
·4 years ago·discuss
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.
ehulinsky
·4 years ago·discuss
wish me luck I have a duel tomorrow
ehulinsky
·4 years ago·discuss
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.
ehulinsky
·4 years ago·discuss
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.
ehulinsky
·4 years ago·discuss
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.
ehulinsky
·4 years ago·discuss
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.
ehulinsky
·4 years ago·discuss
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.
ehulinsky
·4 years ago·discuss
Once they intersect a piece they can keep moving, but they can't exit on the other side
ehulinsky
·4 years ago·discuss
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.
ehulinsky
·4 years ago·discuss
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.
ehulinsky
·4 years ago·discuss
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.
ehulinsky
·4 years ago·discuss
thansk
ehulinsky
·4 years ago·discuss
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.