News for hackers. Stuff that matters.
Re:Analog Chess – pieces are not constrained to a grid by function_seven on Friday January 13, 2023 @01:21PM (#34371739)
One modification to this game I'd like to make is adding the missing knook piece.

But sadly I don't think I'm up for it: Do not expect the code to be stable under any modifications, but you can try if you want I guess.

Re:Analog Chess – pieces are not constrained to a grid by Shared404 on Friday January 13, 2023 @01:26PM (#34371812)
Build the board out of bricks and it's both stable amd you get easy access for bricking online!
Re:Analog Chess – pieces are not constrained to a grid by newaccount74 on Friday January 13, 2023 @05:21PM (#34374722)
What's a knook? A mix between knight and rook? How would it work?
Re:Analog Chess – pieces are not constrained to a grid by function_seven on Friday January 13, 2023 @10:37PM (#34377172)
Yup. It’s a piece that can move anywhere a knight or a rook could move. Invented (I think?) by /r/AnarchyChess
Re:Analog Chess – pieces are not constrained to a grid by schindlabua on Friday January 13, 2023 @11:47PM (#34377458)
I've known this as the "Empress", a fairy chess piece.
Re:Analog Chess – pieces are not constrained to a grid by np_tedious on Saturday January 14, 2023 @05:35AM (#34379120)
That sounds more like queen + knight
Re:Analog Chess – pieces are not constrained to a grid by coeneedell on Friday January 13, 2023 @05:53PM (#34375033)
Looking at the code adding another piece should be doable since I don’t think any pieces call other pieces attributes, and the pieces at game start are just objects in a list…
Re:Analog Chess – pieces are not constrained to a grid by ehulinsky on Saturday January 14, 2023 @02:05AM (#34377981)
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.