this post was submitted on
1,875 points (52% like it)
20,724 up votes 18,849 down votes

gaming

subscribe2,101,988 readers

4,725 users here now

Beware of trading scammers!

A subreddit for anything related to games (but not sports).

"Related" means that posts must contain gaming-related content in the link/post body, not just a "forced" connection via the title or a caption added to the content.


Posting Rules

  • Posts must be directly gaming-related. Thus, "generic" image macros/memes (where the character itself is not related to gaming) like Scumbag Steve, Good Guy Greg, etc. will be removed. Something that "reminds you of a game", or "looks like something from a game" is also not an appropriate submission; similarly, reaction GIFs are also not appropriate as submissions.

  • Following Reddiquette is encouraged

  • No "general" URL shorteners (bitly, tinyurl, etc). Single-site URL shorteners (such as youtu.be or fav.me) are allowed.

  • No game or product giveaway of any kind

  • NSFW submissions and comments must be labeled

  • Spoilers can be posted using the following formatting:
    [X Kills Y](/spoiler)
    Result: X Kills Y.

  • To mark a spoiler as relevant to a specific game/topic, use the alternate formatting:
    [Player 1 wins](/spoiler "Pong")
    Result:
    Player 1 wins

  • Report posts containing spoilers not using the above method

  • Don't post users' personal information.

Submission Rules

Is your post not showing up? Do not delete it. Wait 5 minutes to give AutoModerator a chance to look at it; it approves most submissions automatically. If it hasn't shown up after more than 5 minutes, simply message the moderators and ask us to let it through.


Other Gaming Subreddits

  1. Hey! Listen! /r/gaming is for (almost) anything related to gaming! Check out /r/Games for more informative gaming content!
a community for

reddit is a source for what's new and popular online. vote on links that you like or dislike and help decide what's popular, or submit your own! learn more ›

top 200 commentsshow 500

[–]swimman1998 749 points750 points ago

That's a similar pattern to how I walk home drunk.

[–]UltraChilly 226 points227 points ago

the only way to explain is that you sir are a true knight

[–]SeniorDiscount 109 points110 points ago

who had a great knight out

[–]chaoticdoghouse 15 points16 points ago

good knight.

[–]mrwazsx 77 points78 points ago

It's coincidentally a similar pattern seen when ios 6 users try get to the other side of a street

[–]d_sharp 287 points288 points ago

http://en.wikipedia.org/wiki/Knight's_tour

Pretty standard introduction to Recursion in a Computer Science degree.

[–]MyGeekAccount 95 points96 points ago

Some years back there was a competition to solve the puzzle with the smallest program (in x86 assembler). The winning entry was 46 bytes.

[–]ShabCrab 105 points106 points ago

There was a group with a size of 52 bytes and an execution time of 0.3 seconds!?!? Whereas first place was 46 bytes and 209 seconds? I'd take the 52 bytes, lol. But I realize that it was a competition in size only, so it's a clear winner.

[–]ectomobile 93 points94 points ago

Apparently, size matters in this case.

[–]tupiniquim 89 points90 points ago

Also being fast is not always a good thing

[–]WhyAyala 10 points11 points ago

How so?

[–]Lentil-Soup 62 points63 points ago

Sex.

[–]WhyAyala 47 points48 points ago

Ooooooh. Woosh.

[–]zorbix 9 points10 points ago

Exactly.

[–]SamTheSammich 11 points12 points ago

Most programming competitions ask you to solve a problem with the minimization/maximization of a single aspect. While the faster program would be more practical, the smaller program meets the criteria better than the faster one. It's completely counter-intuitive as a programmer to ignore a huge concept like efficiency.

[–]rexxfiend 20 points21 points ago

Ah, you young kids with your gigabytes and no concept of space efficiency. Get off my (very small) lawn!

[–]Rhawk187 11 points12 points ago

If you're going to be on a satellite in orbit that has plenty of time to run things, but very limited memory, I find this very valuable.

[–]VividVermette 4 points5 points ago

A chess satellite. I kind of wish that were a thing.

[–]TheTourist314 3 points4 points ago

Someone's an engineer and not a CS major!

[–]MestR 2 points3 points ago

Could someone post it as a comment? I'm on my phone and can't download it for some reason.

[–]arronax 6 points7 points ago

it's quite big to put in comment, try this http://pastebin.com/6DH9kTzr

[–]nitsujlol 20 points21 points ago

thought i was gonna cry when they made us do it in lisp

[–]GNG 26 points27 points ago

[–]LordAndre 14 points15 points ago

[–]2_cents 13 points14 points ago

I've never seen this, we just did Fibonacci for recursion.

[–]tigger0jk 11 points12 points ago

If you ever get asked to do Fibonacci on an interview, surprise them and just return (1/sqrt(5)) * (pow(((1 + sqrt(5)) / 2), n) - pow(((1 - sqrt(5)) / 2), n)); It's much faster than recursing for any reasonable n.

[–]Quantris 13 points14 points ago

You had better be aware of the limitations of this approach (I'd hope your interviewer is).

For example with IEEE 64-bit doubles it will give the wrong answer for n = 93, which is still small enough to calculate exactly using 64 bit unsigned integers.

Furthermore if you were asked to compute something like the millionth fibonacci number modulo some number (common enough that I've seen it a few times), you can't use this approach at all. Not to mention even larger n that rule out linear time methods.

If I was interviewing, I'd only be impressed if you could tell me where this equation comes from (well enough that you could derive a similar equation for a different recurrence like g(n) = g(n-1) + 3g(n-2); g(0) = g(1) = 1)

[–]ABCDEFandG 8 points9 points ago

Yeah, we had to do this in "Haskell" 4 weeks into the first semester. It was a nightmare.

[–]thorax 87 points88 points ago

knightmare.

FTFY ;)

[–]shartmobile 12 points13 points ago

Pwned that rookie!

[–]WhyAyala 6 points7 points ago

Pawn that rook

[–]zeekar 5 points6 points ago

A few implementations here: http://rosettacode.org/wiki/Knight%27s_tour

[–]RafikiKnowsDeWay 4 points5 points ago

cs senior here. I feel left out having never been forced through this

[–]Zopoko 94 points95 points ago

I think there was a puzzle like this in the first Layton

[–]whereitsbeautiful 24 points25 points ago

Second Layton!

[–]cloppyhooves 4 points5 points ago

Yup! It was definitely the second one.

There's a guy who gives you simpler versions of it near the Folsense museum, and one of the Bonus Puzzles is the full version.

[–]TheRobotRabbit 66 points67 points ago

This puzzle is also in the new Sherlock Holmes game, reviewed yesterday by Giant Bomb, which is probably what inspired this post.

[–]Defunto 24 points25 points ago

I saw dodger play through that part. I was cringing at how long it took her to figure it out but laughed for the same reason.

[–]Hallc 8 points9 points ago

What annoyed me more was she read the note, went to do the puzzle and kept saying "What do I do?". So much rage.

[–]ObidiahWTFJerwalk 2 points3 points ago

She said in yesterday's TGS podcast not to look for great gameplay from her. She's too busy trying to do funny voices to pay attention to what she's reading.

[–]Enlightnd 2 points3 points ago

Lol, same XD

Lord knows, what would it have been like if TotalBiscuit had to do it. Compared to him, Dodger is a puzzling genius!

[–]DocFreudstein 5 points6 points ago

I could've used this post yesterday. Stupid chess puzzles.

I feel that arbirtrary puzzles like this in adventure games is what killed the genre back in the 90's. It's a fun puzzle, but it makes no sense in the context of the game's world.

.gif was cool, though.

[–]TheRobotRabbit 4 points5 points ago

I agree. The review made it seem like this was the first time something like it had popped up, though. They made the argument that anyone who likes Adventure Games and Sherlock Holmes would know the 'four queens' puzzle, but I like both, and was unaware of it.

[–]ANDpandy 2 points3 points ago

Is it a good game?

[–]ChocolateLasagna 8 points9 points ago

I fucking love Professor Layton. The general atmosphere of the game (especially the second game) makes me feel very relaxed. I know it isn't that old, but I get nostalgia rushes whenever I think of the days I used to play the game.

[–]rishidesai 54 points55 points ago

wait a second, that's the unlock code for my phone...

[–]bogoblin 69 points70 points ago

This is how they made the London 2012 logo

[–]Mothdrop 76 points77 points ago

No I think someone actually had to put some thought into this.

[–]Bucky_Ohare 673 points674 points ago

FUCK YEAH

Something on the front page of /r/gaming that isn't a meme, something about HL3, or a screencap of some random "AAA" studio game.

Even better, it's something awesome about one of the oldest known games on the planet (for which we know the rules.)

[–]free_refill 202 points203 points ago

you know the rules, and so do i.

[–]YSCapital 66 points67 points ago

No, no nooo nooooooooo

[–]Jumin 38 points39 points ago

Never gonna give you up

[–]dsotm75 35 points36 points ago

Stop.

[–]paranoidinfidel 79 points80 points ago

Hammer time?

[–]3rd_Shift_Tech_Man 18 points19 points ago

I was more inclined to collaborate and listen...

[–]PolarisBears 10 points11 points ago

In the name of love?

[–]ShallowBasketcase 6 points7 points ago

Collaborate and listen?

[–]Cyriix 7 points8 points ago

a full commitment's what I'm - thinking oooof.

[–]MuchoMaas49 6 points7 points ago

Does it predate Mancala and Backgammon? Those are the ones I always hear about being the oldest.

[–]gbr4rmunchkin 9 points10 points ago

heuristics baby!

[–]Emrim 52 points53 points ago

Just saw this GiantBomb quick look too, huh?

It's a neat little trick. Good puzzle game puzzle.

[–]roxzr 9 points10 points ago

wow like 45 minutes later i see what you are talking about

[–]Emrim 7 points8 points ago

Yeah, "quick" gets a different meaning at GiantBomb.

[–]deja-vu-comment 805 points806 points ago

The only problem is, that is not where a knight starts.

.

[–]ThatAssholes 29 points30 points ago

True, but according to the Wikipedia article there are 26,534,728,821,064 different ways (including reversals, reflections and rotations) to do this such that the knight travels in a loop (ie starting where it began), in which case you could start from any square and then just continue the loop from there.

[–]squirrelballs 63 points64 points ago

Guys, guys, guys, that's a bot. Follow the blue/purple dot.

[–]Azuaron 75 points76 points ago

Does it matter? That bot has a point.

[–]squirrelballs 29 points30 points ago

Point taken.

[–]SeptVentiDue 42 points43 points ago

Give the bot its point back now!

[–]cgimusic 13 points14 points ago

Well actually that bot has someone else's point.

[–]KennyFuckingPowers 16 points17 points ago

It doesn't matter, because it goes through every post in an infinite loop, just pick a top comment from the first thread and do a repost from there.

[–]linuxporn 6 points7 points ago

I thought the same thing. Could it be done correctly?

[–]Setsuki 43 points44 points ago

http://en.wikipedia.org/wiki/File:Turk-knights-tour.svg

Closed solution. This can be solved from any point on the board. (Start point = End Point)

[–]Stigbit 23 points24 points ago

But can you make it into gif form? That would be much more educational.

[–]monkeymad2 20 points21 points ago

If you don't mind watching things backwards go to: http://upload.wikimedia.org/wikipedia/commons/0/02/Turk-knights-tour.svg

and then paste: javascript:var%20l%20=document.getElementsByTagName("polyline")[0];%20window.setInterval(function(){l.points.removeItem(l.points.length-1)},500);

into the url bar.

[–]Okashu 16 points17 points ago

Are you a magician?

[–]Borntowheep 128 points129 points ago

it doesn't matter, because it goes through every square in an infinite loop, just choose any square as the starting point and do the loop from there

Edit: I'm an idiot

[–]DidNotFinishMyUserna 309 points310 points ago

In this case it doesn't loop. The start and end points aren't the same (and the end point isn't a knight's jump from the starting point), and it's not obvious that there's a solution where they are. It turns out that there are solutions that loop like this, but that's not clear from this example.

[–]lonesome_god 92 points93 points ago

It's the knight's tour. I can do one. The starting position does not matter since by definition, the knight is going to be visiting every single of the 64 squares in the chessboard.

There are two types of solutions to the knight's tour - closed, and open. A closed loop tour is when the ending square is one jump away from the starting square so you can re-trace the same path indefinitely. This type of solution is useful for a human to memorize to solve the problem from any given position.

The type of solution is the open loop, where the starting position is not reachable from the starting position. There are algorithms that can solve a knight's tour.

[Wikipedia article on knight's tour]

[–]dnew 102 points103 points ago

This type of solution is useful for a human to memorize

This must be some new meaning of the term "useful" with which I am not familiar... :-)

[–]Someones_Mom 37 points38 points ago

Shit... I already had my dog start to memorize this... he is as far as "knocks piece over with tail..."

[–]shawnaroo 4 points5 points ago

Well then he's already about as good at chess as I am.

[–]so_what_who_cares 9 points10 points ago

It's the knight's tour.

I believe you.

I can do one.

I require proof!

[–]chipbuddy 8 points9 points ago

If i get time later today i'll write a program to solve this.

whee!

[–]ctr1a1td3l 2 points3 points ago

The starting position does not matter for a closed tour. It matters for an open tour.

[–]Borntowheep 3 points4 points ago

Oh shit! I have no idea what I think I saw but I guess I remembered the gif wrongly.

[–]Draxton 3 points4 points ago

It's an open Knight's Tour; though it doesn't "end" on the same square the gif starts on, it will visit that square as it completes its second loop and end somewhere else, so on infinitely. Eventually it'd come back around to the arrangement in the .gif.

[–]lollerbuster 16 points17 points ago

reread the post you just replied to

[–]jibbers 35 points36 points ago

Except its ending point cannot make a move to its starting point. It is not an infinite loop.

[–]7yphoid 11 points12 points ago

Upvote for "I'm an idiot" :P

[–]manchurian82 10 points11 points ago

So does the queen.

[–]MeatyOchre 14 points15 points ago

And King. And Rook.
But still, more impressive when the knight can do it.

[–]PeePi 5 points6 points ago

And a rook.

[–]RavuAlHemio 10 points11 points ago

AND MY AXE.

[–]Kauppaneuvos 22 points23 points ago

Dear developers, nerf knights.

[–]name_not_taken_yet 6 points7 points ago

This reminds me of the 8 queens problem from CS. It's basically how you place 8 queens on a chess board so that they cannot threaten each other meaning they cannot directly move into one another based on the queens ability to move any number of spaces in any direction. Found a good explanation here http://www.animatedrecursion.com/advanced/the_eight_queens_problem.html

[–]HarlequinNight 9 points10 points ago

This is a knight's tour.

Fun fact, you can do this by yourself very easily in an improvised way (assuming you can keep track of where you've been) by using a simple algorithm.

When choosing which possible square to move to next (legal squares you haven't already moved to) always choose the one that has the least amount of possible moves after it. In the case of a tie, pick a random one. The tie breaker fails on larger boards (NxM) but is fine for a standard 8x8 board.

Edit: For further reading if you really want(PDF)

[–]acespace 6 points7 points ago

I was way too nervous watching that worrying that it'd mess up

[–]Thinandbony 7 points8 points ago

My God, how long is this going to be on my front page? It's currently the top post in/r/ mildly interesting, /r/woahdude, and now /r/gaming.

Apparently this the most amazing thing Reddit has ever seen.

[–]ObLIVi0n75 6 points7 points ago

Checkmate, Atheists.

[–]five35 17 points18 points ago

Pfft. Knights are easy. You want a real challenge? Try it with bishops.

[–]TjallingOtter 4 points5 points ago

This was far more exciting than anticipated. "No, don't go that way!"

[–]ZsaFreigh 7 points8 points ago

This reminds me of trying to collect all of Luigi's Purple Coins.

[–]NapolianDino 12 points13 points ago

So the knight creates a Swastika type image...

[–]Coookiebot 3 points4 points ago

Think I had to do this in one of the Professor Layton games once.

[–]mankindislost 3 points4 points ago

This is pretty much how i drive looking for an adress in a new city.

[–]madcowga 3 points4 points ago

Roombas could learn from this....

[–]mkeene91101 3 points4 points ago

Actually isn't it starting on the wrong spot? I don't think it works if started on the right spot, which is third in from either side not fourth.

[–]zentenai 3 points4 points ago

I learned this from Professor Layton.

[–]Lonewolf1289 5 points6 points ago

I LOVE CHESS

[–]BrwnSuperman 2 points3 points ago

There's something like this in Spybot S&D

[–]JamesWest94 0 points1 point ago

thats DAMN impressive

[–]ANBU_Spectre 2 points3 points ago

And I'm off to solve the corresponding puzzle in Professor Layton.

[–]omphalos008 2 points3 points ago

So too can the King, Queen and Rook.

[–]JSLEnterprises 0 points1 point ago

The starting location is that of a bishop.

... just throwing that out there for those of you who hadn't noticed.

[–]Snipufin 7 points8 points ago

So you take an image from Wikipedia and put it through imgur? Nice job hiding your tracks.

[–]nxlyd 7 points8 points ago

People don't bother to look at images if they're not on imgur.

[–]Shniggles 4 points5 points ago

Damn, this was posted 15 hours ago on r/woahdude. then it was x-posted to r/gifs 9 hours ago. This was posted 2 hours ago.

wat.

[–]fuczak 3 points4 points ago

Why did I watch it to the end?

[–]HojoBaDojo 0 points1 point ago

That's not a knight, that's a dot.

[–]tehweave 0 points1 point ago

And it creates a pretty pattern!

[–]Bayakoo -1 points0 points ago

A rock too

[–]Mypenisblack 1 point2 points ago

I have no idea why I got so excited while watching this.

[–]HungLikeADonkey 1 point2 points ago

That knight looks a bit like an arrow to me

[–]Cylus923 1 point2 points ago

You obviously just started at the end and worked backwards! ... Wait....

[–]tavikwright 1 point2 points ago

Knights are so OP

[–]camperjohn64 0 points1 point ago

But he can't reach the original spot. Meaning you can't start anyplace and perform the same task.

Is there a pattern that repeats, so that you can start from anyplace and hit all squares?

[–]HandyCore3 1 point2 points ago

QBert would be proud.

[–]mondayschild 1 point2 points ago

so beautiful!

[–]The_Roz 0 points1 point ago

Which is why knights are worth 3.5 and bishops are 3.

[–]caglebagle 1 point2 points ago

So can a rook.

[–]jyeung281 1 point2 points ago

I'm getting that pattern as a tattoo

[–]MontanaTrev 0 points1 point ago

Interesting discovery OP! TIL Something!

[–]mattybihls 0 points1 point ago

At the end the path kind of looks like boobs and really wide hips.

[–][deleted] ago

[deleted]

[–]ChiguireDeRio 0 points1 point ago

I expected something flashy to happen at the end.

[–]nathanb065 0 points1 point ago

That's what it looks like when I mow my lawn...

[–]wr80 1 point2 points ago

Did anyone else find themselves yelling "GO GO GO" at the end of this gif?

[–]I_am_God_seriously 1 point2 points ago

Fact: When I was on the chess team I never lost a game. Stale-mate on one though. That was embarrassing.

[–]ZwortniK 0 points1 point ago

End result: fuzzy monster face

[–]Mothdrop 0 points1 point ago

Who has the time to make stuff like this?

[–]roguebagel 0 points1 point ago

Spoiler alert

[–]JushiBlue 0 points1 point ago

So can a rook, king, and queen...

[–]eviltrollwizard 1 point2 points ago

"A knight CAN reach every spot without repeating under special circumstances." ftfy

[–]mdouet 0 points1 point ago

This is a pretty common programming assignment in college, we had to write a program that did this on my sophomore year.

[–]shawnvmartin 0 points1 point ago

Now to memorize this and impress everyone at a party...

Guys? Where are you going?

[–]DifferentCeilings 0 points1 point ago

60.

[–]rabbidpanda 0 points1 point ago

I had to take a CS course in discrete math. We had to prove this inductively. That proof was the exact moment I started to understand the subject. It was kinda fun.

But not fun enough that I didn't hate the course.

[–]bro_latona 1 point2 points ago

that isn't where the knight starts...

[–]warlord_jared 1 point2 points ago

This gif moved forward in frames at a rate that matched up exactly with the tempo of a power metal song I was listening to. Chess has been made much more epic.

[–]pork_sausage 1 point2 points ago

Final pattern would be a great tattoo.

[–]jkeegan123 0 points1 point ago

This is the advanced version of the restaurant peg game.

http://www.joenord.com/puzzles/peggame/index.html

[–]divide_by_zero00 0 points1 point ago

why did I watch this?

[–]crosby510 0 points1 point ago

I figured this out in 15 minutes the first time i tried it. This gif is probably the most complicated way you can do it. If you just keep it as close to the wall as you can and keep going in circles, it works out with mininmal thinking, and it loops.

[–]spady62287 0 points1 point ago

We should amend Chess. And if the Knight hits every spot, every piece on the opponents side is taken. Except the king.

[–]fpooz 0 points1 point ago

Fucking flawless game design

[–]gedehs 1 point2 points ago

[–]laughingwithkafka 1 point2 points ago

Any Combinatorics professors out there that would care to give a mathematical explanation?

[–]K1N6F15H 0 points1 point ago

Next up: A king reaches every spot without repeating.

[–]crila 0 points1 point ago

The lines kind of look like a face when it completes.

[–]SophisticatedVagrant 0 points1 point ago

I feel like the path that is made would make a really wicked tattoo for a bad-ass chess nerd.

[–]solidoxygen -1 points0 points ago

FUCK YEAH Something on the front page of /r/gaming that isn't a meme, something about HL3, or a screencap of some random "AAA" studio game. Even better, it's something awesome about one of the oldest known games on the planet (for which we know the rules.)

[–]wtfRacc 1 point2 points ago

Dat Hamiltonian Path.

[–]jocularferret 0 points1 point ago

What field of mathematics is this? I want to learn and understand.

[–]mcertosi 0 points1 point ago

It's dumb there is no restraint to the process.

Without repeating is completely easy.

[–]thegraverobber 1 point2 points ago

I've been watching this for about twenty minutes, and I can safely say that it's repeated a few times.

[–]bigmenace 0 points1 point ago

When are they gonna patch the queen? It's so OP.

[–]ARustyFirePlace 1 point2 points ago

video games

[–]manaworkin 0 points1 point ago

Those last few moves got intense.

[–]tf2trademule 1 point2 points ago

how long does it take for a computer program to solve this problem?

[–]indubwestep 0 points1 point ago

it cheated..... i think

[–]Chartski 0 points1 point ago

If only he could reach his beginning spot from his final spot...

[–]kestrelg 0 points1 point ago

moral of the story: stop reposting?

[–]MagisterLayze 0 points1 point ago

Svastika detected!

[–]thewretchedspawn 0 points1 point ago

who would spend the time to find this out?

[–]Jackhotness 0 points1 point ago

A game of chess is like a sword fight - you must think first before you move.

[–]NakedLoki 0 points1 point ago

The Queen and Rook can do it. Not impressed.

[–]FMJason 0 points1 point ago

That is awesome!

[–]ALifeLikeRobot 0 points1 point ago

It does repeat!!!

[–]manuel_robot_cleaner 0 points1 point ago

HAHAAAA THAT WAS SO AWESOME!

[–]lastresort09 1 point2 points ago

Except... a knight doesn't start from there.

[–]jared2294 0 points1 point ago

what a beautiful figure

[–]Blakes 1 point2 points ago

very nicely done

[–]justkilc 1 point2 points ago

I'm always down to play chess...

[–]Olivtown 1 point2 points ago

Congratulations, you beat Chess

[–]wizpig 1 point2 points ago

Personally, I thought Ryan and Jeff handled the situation better than I would have

[–]gomsa2 1 point2 points ago

This looks like an awful discrete math problem.... shudders

[–]humfuzz 1 point2 points ago

Professor Layton will be so proud

[–]SpaceZombeh 1 point2 points ago

I see a face. The being of the chess board.

[–]GuyOnTheMoon 0 points1 point ago

Oh wow...

I thought the idea was that you're a knight if you can follow all of that with your mouse without having to repeat.

[–]pemricht 1 point2 points ago

slightly more impressive than a rook reaching every spot without repeating.

[–]tidder_bear 0 points1 point ago

huh

[–]tamirmal 0 points1 point ago

basic backtracking. I hate that shit, you break your head trying to write and understand those things and then the profesor comes and says that its rarely used :\

[–]readskull 1 point2 points ago

The path traced forms a spaghetti monster (ok, almost)

[–]zombiebee 0 points1 point ago

This was so trippy at a [7]

[–]mxlnt 0 points1 point ago

is this the grid they used for the 2012 logo?

[–]Drayden81 0 points1 point ago

That's pretty damn cool.

[–]apsidalsauce 1 point2 points ago

That's not where the knight starts