Live data from Hacker News

Ain't it funny how the knight moves?

funnyhowtheknightmoves.com

161–170 of 211 posts

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

#161

In case anyone else goes nuts trying to write a program for a knight's tour with the additional queen constraint from this game: you can't get to B7. Obvious if you actually look at the board.

How is B7 more noteworthy than anywhere else that is under attack from the queen?

Cause I made a mistake and coded the queen as a rook. Jeez I should just go to bed.

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

#162
post #5

The fact that it doesn't highlight where you've moved already makes it no fun. Edit: the directions weren't super clear. I see that you're actually supposed to go to every square in a specific order (first G8, then F8, E8, etc), not just visit them all in any order. That means you have to do a bunch of laborious trips around the queen to go to certain squares since you won't have enough room to maneuver directly ther…

I agree, but I wonder if it's on purpose. I found the repo[1] and it's very small readme says it's a "Chess visualization exercise" So I'm wondering if it's an extreme exercise in memorization to help you visualize games better. (I'm just talking out my butt here, I know nothing about chess puzzles) [1]: https://github.com/jairtrejo/knight-moves

Still doesn't make it sense from a UX perspective. You can make it an option to highlight the square or just show coordinates and cater for both crowds.

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

#164

I think the instructions should be: Move to the square indicated below the board without moving to a square the queen can capture and without capturing the queen. Once accomplished a new square will be indicated. Repeat until all possible squares are done.

Holy... is that what you're supposed to do?!? No wonder the bar wasn't growing even though I jumped to every possible square -.-

so they only now added a help button? that's what it says there.

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

#165

clicks help ha ha I’m not doing that

Right? Where’s the fun in that? I blame YouTube for explaining the bejeezus out of everything and spoilering everything else. Don’t get me wrong, it has its value. I’ve saved hundreds on refrigerator repairs.

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

#166

I think the instructions should be: Move to the square indicated below the board without moving to a square the queen can capture and without capturing the queen. Once accomplished a new square will be indicated. Repeat until all possible squares are done.

another hidden UX: clicking a square will move the knight there (if valid move). do not have to drag and drop.

Thank rook for that

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

#167
post #14

Earlier quoted context omitted.

It has text now? "Move the knight to every square, right to left, top to bottom. Don’t land anywhere the queen can take you, and don’t take the queen."

Except, it's not accurate. It says "move the knight to every square" but the game is actually "move the knight to the next square specified".

It might not be obvious, but the specified squares are "all the squares in the order right to left, top to bottom without those the queen can attack" as the text instructs.

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

#168
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

Same but with the original board as part of the visualization, and with different parts of the structure highlighted: https://ibb.co/JFY3jm4 It made a lot more sense after doing that, as I'm nowhere near proficient enough at chess to see the board and all its moves in my mind's eye.

Wow, this vizualization is amazing!

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

#169

Earlier quoted context omitted.

I'm confused. What "same thing" did everyone try? The instructions in the help section in the game seemed perfectly clear?

No, they say to move in every place, while you're expected to to move to a specific place in every step. f8 is the first for me, but I did not understand that was supposed to be the target, since it seems arbitrary.

But it says "every square in order right to left, top to bottom"?
Post reply on HN