Live data from Hacker News

Ain't it funny how the knight moves?

funnyhowtheknightmoves.com

121–130 of 211 posts

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

#121
post #120

Earlier quoted context omitted.

here's a script that will highlight previously visited squares as red. as a nice bonus it replaces the instructions with more accurate ones // Get all square elements squareElements = [...document.querySelectorAll("[data-testid='white-square']"), ...document.querySelectorAll("[data-testid='black-square']")]; // create array of elements that have been landed on // these need to be set to red every time because the boa…

very clever little hack -- had to fix the first couple of lines to remove extra newlines and "...."

thanks! not used to the HN code comments. fixed it

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

#122
post #31

Earlier quoted context omitted.

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

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

Wow, I thought it was just cus I was drunk

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

#123

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.

Perhaps it's me but had absolutely no trouble interpreting the 'help' meassage. Before I did though, for at least some time, was trying to capture the queen :)

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

#124
post #115
post #45

Earlier quoted context omitted.

A short note about how the coordinates work would also be helpful, or just highlight the target square, because not everyone knows chess notation by heart. I tried two different interpretations (both wrong) before finally resolving to google for it.

It asked me to move to e8...but that's a move where the Queen takes Knight. I don't get it.

Look again. The queen doesn't take the knight at E8.

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

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

ohmuhgawd, that's gotta be the darkest thing i read all day and caused me to literally lol (so that device would let me type it) so hard i spilled a bit of my old fashioned.

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

#126
post #99
post #70

Earlier quoted context omitted.

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!)

no, you just have to use your brain implant's wireless connection to make changes. what kind of 21st century lame-os are you that have to worry about electric connections to the computer?

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

#127
post #59
post #37

Earlier quoted context omitted.

Or just put a target on each goal square in turn.

Yeah I don't think text instructions are even necessary here if you make enough visual suggestions.

so says every primary math student learning word problems

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

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

Thanks for generating this! I struggled quite a bit getting to a few squares, and the graph shows they were indeed far apart from each other and that I wasn't missing something obvious.

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

#129

After a couple tries got it done in 16 minutes or so. Probably laughably bad for anyone good at chess but it was a fun and enlightening challenge. About midway through I had a sudden click and figured out the pattern to hit the right squares. I don’t know how to put it into words but I believe there’s a three move combo that helps you move off of one set of squares and onto the other set. And my intuition got a lot b…

That sort of clicked for me too, then I decided to take a break from fumbling through it and draw out the graph.

I ended up visualizing as two sets of loops connected to each other in the bottom-right, top-right and bottom-left quadrants, with some dead ends branching out:

https://ibb.co/JFY3jm4

Was much, much easier to complete once I could see a map of the board.

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

#130

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.

Kind of makes you appreciate the amount of work most games put into UI design. This game mechanic is very simple and it still needed documentation... And the documentation wasn't enough! Immensely complex games these days are so good at providing hints and player feedback that many often don't need their tutorial levels.
Post reply on HN