Live data from Hacker News

Ain't it funny how the knight moves?

funnyhowtheknightmoves.com

91–100 of 211 posts

Re: Ain't it funny how the knight moves?

#92
post #40
post #24

Earlier quoted context omitted.

why would I practice visualizing not-chess information about chess pieces, when I could visualize actual chess information? The history of a pieces moves is irrelevant to chess, except in extreme corner cases of repetition.

The history is irrelevant here as well, you just need to know the next goal, which is always indicated.

I see that now. The UI has poor discover ability of the goal, especially on mobile.

Re: Ain't it funny how the knight moves?

#95
If you'd like "easy mode," such that the queen's squares are highlighted:

  ((sq) => { let board = document.querySelector('div.m-auto'); sq.forEach(s => board.querySelector('[data-squareid="'+s+'"]').style.backgroundColor='red'); })(["d8", "d7", "d6", "d4", "d3", "d2", "d1", "e6", "f7", "g8", "c6", "b7", "a8", "c5", "b5", "a5", "e5", "f5", "g5", "h5", "c4", "b3", "a2", "e4", "f3", "g2", "h1"])
I found that to be the middle ground between "you still have to plan" versus the amount of energy I was spending trying keep track of the forbidden squares

Re: Ain't it funny how the knight moves?

#97
post #80

Ok, shameless plug. I did a pretty “popular” version of this. https://knight-queen-game.netlify.app/

Yours is nice. I think the behavior of clicking where the night goes is a bit better.

Thank you :)

I really had fun making it and speed running it.

It is also one of the few things I’ve made outside of work that got kind of popular for a little while and the ride was really fun.

It gives me disproportionate pride and joy :)

I also love chess

Re: Ain't it funny how the knight moves?

#99
post #70
post #31

Earlier quoted context omitted.

Judging by this thread every single person did the same thing and became equally frustrated (myself included).

something something programmer found dead in the shower

Maybe we were pushing the programmer a little too hard for changes if they felt compelled to continue working on their project while showering. (Remember folks: using a computer, or any other electric appliance, in the shower is a bad idea!)

Re: Ain't it funny how the knight moves?

#100
post #88
post #79

I mapped out the structure of the board as a graph of which squares you can get to from which other squares. It's surprisingly stringy without all the squares forbidden by the queen placement. https://i.imgur.com/8OuQcu8.png

How did you do this? Or was this done manually?

I wrote a ruby script to map out the graph and fed it into graphviz to make the image.

https://graphviz.org

Post reply on HN