Idea: have 13 coins. Line twelve of them up, and flip the last coin to determine who will go first. If the flip says that you go first, add the last coin to the line, and act like that was what was going to happen all along. If the flip says that they go first, pocket the coin, and act like that was going to happen all along.
That's pretty friggin' cool. Always amazed with the clever ways engineers could 'program' arbitrary rules or mathematical stuff to play out via purely mechanical means.
We studied pneumatics and hydraulics in our Mechanical engineering course. You can use them to do purely mechanical automation and programming. It's essentially the same thing happening in your modern day computer, except that instead of a few dozen switches, you have billions of very tiny ones.
@@Banzybanz I once had the dream to make a logic controller out of pneumatic relays rather than transistors... I got over it when I had trouble scrounging the parts
@@OneHunnitNoCapStannitOnBidnisz This game here, early transmissions, mechanical computers, analog calculators, complex astrological calendars built thousands of years ago that could accurately predict the position of the sun today to a precision we have trouble matching. Lots of stuff! I'm a programmer, and it's fascinating how people solved the same problems we solve today with purely mechanical principles. Sometimes I'll have trouble working out a problem, then you think people used to have to solve the same thing I'm struggling with translating into code with a powerful digital computer but using only stacks of precisely tuned gears and chains, vacuum tubes, or plastic spheres interacting with plastic switches as it fell down a gameboard. Pretty neat stuff.
@@jpnrndr7983 You fr just commented "you dont to be smart" and "dont comment with shitty emoji" m8 it sounds to me like your grammar is the equivalent to an 11 year old Spanish speaker who's been playing around with duolingo for the last week and a half so I suggest you stfu
played this with my young nephew. only instead of coins, marbles, or pegs, there were sweets. and instead of losing, if there were no sweets left to take, and it was your go, you'd have to take and bite into a wedge of lemon. because what else are nephews for
Barney McWhat honestly this is the better version of the game to play, as it isn’t inherently rigged, there is actual strategy. If you’re losing, you can take 3 sweets per turn, forcing your opponent to take one. If they choose to take more, you can force them into eating the lemon. If they don’t, you at least get the majority of sweets...
From the screenshot I thought Dr. Nim would have some mechanics hidden inside. It's simplicity makes it even more amazing. It's pretty much a mechanical flowchart!
I remember seeing a version of this game on an old show called cyberchase, they even explained the same group of four trick and a version where you dont want to be left with the last marble. Kinda neat.
Thank you for this explanation. I have a new proffession as a NIM gambler and have won alot of money using this strategy to outwit people on the playground, those year 7s will never see whats coming.
@@ThomasFarquhar2 people in many more places than the UK. I'd imagine most English speaking countries, but I'm not sure. I know that in three out of the four countries I've lived in have been sorted into years like this.
I had Dr. Nim as a kid!! The manual was the most detailed, text filled set of toy instructions I ever got (not including model instructions). If I'm remembering correctly, there was a section at the end of the manual which explained computer programming or the logic needed for one. I remember using that info and programming my own Dr. Nim game in HP Basic on a "time share" HP1000 computer. Oh, and, it was saved on lunched yellow paper tape that you had to reload to play.
You could simply sum up the strategy in one single sentence: Make sure there's a multiple of 4 tokens on the table when it's your opponent's turn. The game was actually pretty popular with aging con men that didn't have the speed in their hands anymore to swindle money out of people with the three shell game. But the mechanical implementation is really awesome.
Now I'd really like to see Matt do a video on the Mario Party 2 minigame "Honeycomb Havoc". It's basically an inversion of Nim: 4 players, you can take 1 or 2 items on your turn, and the object is to NOT take the last item, whoever does is eliminated.
That's not an inversion, it's literally the same game. You just win if you take the second to last item, instead of the last. The strategy is identical, except instead of leaving a multiple of 3 behind, you leave 3x+1 behind after your turn.
iamchillydogg The game itself isn't inherently rigged. When players use a strategy that never fails, it's not cheating, it's just simple strategy. They aren't changing or breaking rules.Just taking advantage of a winning maneuver. Like going against someone in Tic-Tac-Toe, but they have an actual strategy while you're just randomly filling in boxes. If they win, its because they had a better strategy, not because they were cheating. At least, that's my perspective on it. As long as both players can agree on and follow established rules, anything goes, provided it doesn't break those rules. When being taught the game, the new player would learn that there are twelve coins, and thus it becomes one of the foundation rules. Adding an extra coin is breaking said rule.
iamchillydogg Rigging isn't necessarily cheating. Besides, this version doesn't break any rules. It could be called strategy in a court of law, and it would have a fair shot of getting out scott free, if you compare it to adding the coin. One of these tactics is subtle, one is not. Adding the coin makes it go from a strategic misdirection and manipulation into downright cheating and lying. Note: I am going off of MY definition of cheating, which is simply breaking rules of a game. Having a strategic advantage is permitable if no rules or regulations are broken. It's not really fair, no; it's playing dirty. Playing dirty is frowned upon, sure, but it isn't breaking any rules.
the game is inherently unfair. trying to say that player 2 is using a "strategy" is nonsense. there is a right way to play the game as player 2 an a wrong way. it's utterly binary. on the other hand there is no correct way of playing player 1's role other than to quit. there is no strategy. there is litteraly correct an incorrect. thus player 2 is already cheating because if he is playing correctly player 1 can't win. no matter what happens. the presumption of playing a game is that you can win. if one player cannot win then that is cheating. if you say it is not cheating then it is not a game. thus if playing for money it is stealing. which is a form of cheating. if not being played for money well it's not longer a game so you can't say it's fairplay because it's not a game. it's a time waster. but it can be argued that your cheating people out of there time if they do not understand the player 2 = winner strategy
Here is a trick to slip in an extra coin in case you are the first one to play. Or lets say there is a dispute to who plays first. Throw 12 coins on the table .(Not in a straight line. You can place the last coin with dollar bills aside) Now take an extra coin out of your pocket and ask the other player for heads or tails and the winner plays first. If the other player wins the toss, GREAT ! Put the toss-coin back in your pocket and let the game BEGIN !. If YOU win the toss, no problem, casually put the toss-coin in the play to make it 13 coins :) and let the game BEGIN !.
John Beauvais Why? I mean its not like people were any dumber in the past (actually looking at the news I'm starting to think it might be the other way around lol)
Well, you know that in the 1960's they put a man on the moon using sliderules and an onboard computer with less computing power than a digital watch from the 80's. I suppose they also invented computers so, why couldn't they make a clever plastic toy?
I remember playing a game like this with my second grade class called 21, where you could say one, two, or three numbers in a row, and whoever said 21 lost. So, for example, player one goes 1,2 then player two goes 3, player four goes 4, 5, 6. Then if someone had to say 21, they were out and we started again. The last person left won. I remember being very proud of myself for finding out the trick described in the video
Periodically this comes back round in my recommendations, and every time for 6 years it frustrates me that Matt never demonstrated beating Dr Nim using the equaliser paddle...
This was my data structures project. We make the game of Nim (take 1 or 2) with n number of marbles, the computer generates the decision tree for it, assigns values for each node, then makes a decision on its turn using the MinMax algorithm.
standupmaths This is particularly true for zero-sum games like Nim. What's interesting about the 1/2 version of Nim is that its tree has a number of nodes that increases according to the Fibonacci sequence (exponential growth in the numberof nodes) as you increase n, which is intuitive since you either take one ball and go one direction in the tree, or two balls and go in the other, so the number of nodes (let's call it V(n)) is: V(n) = V(n-1) + V(n-2) +1. And of course solving this gives you the closed formula for the Fibonacci sequence + a constant.
Why does this keep appearing in my recommend list every few months? RUclips keeps forgetting that I've seen this already. Does this happen to anybody else?
late reply, but a similar version of this game exists in a kids game that my friends and I used to play. It's called 21, and basically you count but you can only say 3 numbers and then your opponent continues. And whoever reaches 21 loses and gets some arbitrary punishment. So the goal of the game is essentially to reach 20, so your opponent has to say 21 and lose. I, and many other kids, actually independently found this trick because it's not that hard to figure out. SO it's a fairly widespread mundane game, any many versions of it exist. It's not as universal as something rock-paper-scissors but it's certainly akin to it. And it's quite pointless to ask who invented those kind of games. It's a pretty simple game, so it's reasonable to assume that many versions of essentially the same concept were invented in many places independently and one version got standardized.
Cool! Didn't know there was a plastic verstion of nim. Back in the programming lectures at school we developed this game. It was meant as demonstration for us that AI's in games are not really AI's. In our version it were imaginary matchen wich the opponents have to get from the stack. That the "AI" not always wins, we put some randomness into the number it chooses to put the matches.
John Gaquin technically, computers was just the name for dedicated mathematicians, who were trained to process equations. The computing machine took its name from their role. So theres another thing that used to be classed as a computer; people. #themoreyouknow
That's because we throw around computer with absolutely no specificity. What you used to watch this video is a general purpose computer. Inside of it however is an example of a more specialized computer: the graphics card. it is a whole computer unto itself but ill suited for general purpose computing due to it's high degree of focus on vector based calculus. In printers you can find highly specialized computers that require massive reworking to be recognized in the same vein as an ordinary desktop computer and I'm not talking cosmetic changes. This computer is specialized in solving one specific equation. As such it's simple enough that you can easily see how it works with only elementary arithmetic and rudimentary mechanical knowledge.
i literally had a player in a DnD campaign use this to trick the BBEG out of a world destroying weapon... "I challenge the Warlock to a game of Nim" Warlock (me as DM) rolled a 1 and thus, the Warlock fell for it...and went first... Gotta say, it was a smart move from the party's Barbarian, who was the only one above 1/4 HP...if they had tried to fight it would have been a loss...
@@lextatertotsfromhell7673 The Barbarian was a bit smarter than most, he was a professional gambler (sleezebag scammer) of course, whenever he lost his temper or lost a match, he just killed the winner...
I remember having to find a way to code this is high school for a final exam, but we called it match sticks. We had to program different difficulties with the hardest being “impossible”, where the program always wins. Looking back I never knew it was anywhere near this deep
To beat this, switch it back to your turn and just go again. Then declare computers will never be better than humans and viciously hammer and destroy the game board.
I don’t know anything about this game other then what he explained but couldn’t you just release two balls immediately after each other so the ‘counter’ sees them as one balls, force the ‘computer’ to loose count. This way the computer will make all the moves to lose without knowing it. It’s a simple contraption and it seems that counting for this computer takes way to long, unless this is explicitly against the rules or the button is designed in a way to prevent this you should theoretically win every time
No, this has been hotfixed apparently. Supposedly, there's someone else who claims they've been doing something similar on the PTR, so we'll have to see once that goes live.
In the mid-1960s, I got an Amazing Dr Nim for my birthday when I was about 8. It was my favorite toy! The manual is really good and gave eight year-old me a lot to think about.
"You can tell it's 1960's America because there's a wholesome family having fun, with GUNS in the background." I'd like to say you're wrong but it's very true
Back when guns were everywhere but mass shootings were almost unheard of. Kids brought guns to school to target practice in PE. Imagine it. People like to make fun of boomers who blame video games for mass shootings, and I'm sure those people are atleast mostly wrong, but they are on to something in the sense that something did happen. Be that video games or something else, some force or influence, SOMETHING did screw up the culture.
I'm homeschooling this year and taught my kid a 3 row version I played in math class on the chalk board in 1992. I always thought the name Dr. Nim was strange name. I never knew about this until I googled and found your video. 30 yrs and I remember vividly how hype we would get over playing this. Teachers are wonderful ❤
Basically for a tl;dr Make them go first, make sure 4 marbles/pennies/whatever are taken after you go, being sure 4 are taken after both players go. Do this and you win every time.
This might have been clearer if he had used 4 red marbles, 4 blue marbles, and 4 green ones. Then you'd really see how Nim leaves the "board" at the end of his turns.
@UnKnOwN player59 -Dam- *Damn* -i- *I* (capital "i") -your- *you're* Add a full stop (period) at the end & you're all set. _I guess you're not speaking English either...?_ ;)
Joseph Engelhardt Changing the conditions of the game is cheating? Well shit, u better go tell weather not to fuck up sporting events. Once a person knows how the game works it only makes sense to trip them up.
"Weather may change" is part of outdoor sporting conditions. Slipping an extra coin in while the other player isn't looking is like deflating a football.
I think this game was the inspiration for creating the mini-game Honey Comb Havoc from Mario Party 2. Which by the way was so fun beating my friends and the CPU at it as I knew how to manipulate them to getting the bee hives.
my first experience with this game was in Tales of Phantasia on the GBA. computer always picked a random number and would let you pick who goes first, or something. basically giving you the ability to beat him if you were smart enough.. but the game was also timed, so you had to do the math quick. loved it.
@@nightlydisaster5183 You'd think, but when I was in hospital one of the only board games in there was a game called "mind trap". Which i though was hilarious, despite the fact that it's very existence was making me paranoid.
+Formulka Also, if you rotate the NIM board upside down when you've finished a round, all the marbles will load themselves back into the top part, ready for the next game. Wins all round
I loved this toy as a kid.... used it to do my math(s) homework! Ahh that rhythmic three-marble-drop sound of defeat brings back such feelings of failure.
Hey you set the rule so you can go second, if they want to change the rule,you can also do it. Besides,if the opponent dont know the secret,you can still win even tho you go first
Just add more coins, so using 21. Let them choose to go first, or if you do. Start off slightly differently by only taking 1 at a time and at some point along the way, just ensure that the remaining coins are a multiple of 4 (4, 8, 12, 16) at the end of one of your turns. Then revert back to using the strategy explained here and you will always win! If they try to outsmart you and say "Ok then whoever takes the last one LOSES not wins" then you can say alright, and do exactly the same but make sure that at the end of your turns the remaining coins are a multiple of 4 plus 1 (5, 9, 13, 17) and then again fall back to watching what they take and always make that up to 4 on your turn. Then you can force them to always take the last coin instead of you taking it. The only danger with that is that if they found out your strategy then they will be able to block you from reaching those multiples, but by this point you've probably played them so many times you can just call it off first or let them win once for the sake of it :D Simple and no cheating :D
I had a Dr. Nim way back when. I actually wrote a BASIC program to play the game on the Time-Shared HP in New Hampshire via TTY based on the game's manual back in 1972.
+delton No, the picture of the family on the box is also racist. But while the Chinese caricature is racist specifically against Chinese people, the whitewashed family on the box is racist against everybody who's not white by implying that only this (semi) nuclear family of white, middle class people is the norm, and anything else is an aberration.
I remember seeing a computer version of this Nim game using 21 "matches" (or any other item) where the object was the opposite - to force your opponent into having to take the last match. The strategy was the same, though.
This game is brilliant. For many years years my kids beat at a game they called '21', the aim being, whoever reached and said 21 would lose i.e. player A counts 1 and player B counts 2,3,4 and so on, up to 21. Exactly the same mathematical principal but by ending on that odd number i.e. 1 greater than a multiple of 4, they forced me to lose every time. I never ever worked it out, they had to explain it to me. Admittedly I was gutted, but also very proud that they had outsmarted me. I'll be scouring eBay for a copy of the original Dr Nim for the foreseeable future. Excellent video!!
A variation of this was given out one year as a GCSE Computer Science programming project. The variation the students had to code had 21 sticks to try and mask the maths needed to always win.
A slightly different version of this game is played in the 1961 French New Wave film Last Year at Marienbad. The character who plays it uses it as a sort of parlor trick, fascinating all his fellow aristocrats by his unmatched skill. It vaguely serves as a metaphor for this character's controlling and manipulative nature, but it's never demonstrated in the film that it's a hermetically sealed set of forcing moves determined from the outset, so it's very cool to see some of the mechanics behind it.
Ethan Ho okay? What are you trying to get at? If you're saying it like a list, as in 'NIM upside down is win, the same is true if it's backwards' that's incorrect. Or if you're saying it as a movement, as in 'I flipped the letters in NIM backwards and then upside down.' It's still incorrect. If you flipped the letters in NIM in they will not spell win, not unless you had a mirror, but that's cheating.
We learned about a version of Nim in the game theory section of an upper-level mathematics course! It's an example of a game in which there exists a winning or optimal strategy, where by playing perfectly one player can always guarantee a certain outcome (in this case, beating the opponent). As discussed in the video, depending on how you configure your version of Nim (i.e. number of starting coins, marbles, etc.) you can always guarantee that the first or second player can win by playing perfectly. The mechanical computing board is a fascinating and a terribly clever design! Tic-tac-toe is another interesting example because in some sense both players have an optimal strategy: in any game of perfect play neither can win. By responding to the first player's moves appropriately, the second player can always force a tie game. No one-sided winning strategy exists, unlike in Nim where one player is guaranteed to lose.
@@louistournas120, I think a mechanical tic-tac-toe playing system is certainly possible and sounds like fun! As you may or may not know, recreating the algorithm for playing an optimal game of tic-tac-toe is a common introductory-level computer science/programming class assignment because most people know how to play from experience and it helps students practice thinking like a computer (checking variables, logical decision trees, etc.). A mechanical system (perhaps using weights, balls, or levers to mark player moves) for deciding optimal tic-tac-toe moves could certainly be engineered. Maybe it would instruct the human player where to place the mechanism's chosen tic-tac-toe marks. I picture something like a box that fits on a small tabletop, with mechanical switches on top for players to mark their choices. Inside, those switches could be connected to little barriers that redirect a little ball through a branching path with multiple levels. By blocking certain pathways and leading the ball to one of nine end-of-path choices, it would represent the mechanical computer's choice of placement. There might be more elegant solutions using weights or springs but that's what comes to my mind. I think your idea is a good one!
@@doodlevib : Yes, we did that in a computer science course which was about assembly programming. We had to draw stuff on screen ourselves. I wrote a function to draw a vertical line, a function to draw a horizontal line, a function to draw a circle, a function to draw diagonal lines. We didn't program the AI side. It was suppose to be played by 2 human players and the code detects when someone wins. Years later, I did a version that runs on iphones/ipads.
@@louistournas120, thanks for sharing. Some classmates of mine made a tic-tac-toe playing AI in Python as a class project. The graphical component was probably easier for them than for you because they used a Python module with a library of graphical tools, rather than doing it all by hand in assembly-level language. A harder AI to program than tic-tac-toe is one that plays a game called "Bagels" (sometimes called "Pico, Fermi, Bagels"), which is a 3-digit number guessing game. There are simple explanations of the rules online. It's not hard for humans to intuit an optimal strategy that gets you the right answer in the fewest number of guesses, but writing out a decision tree for an AI to play that well is much more challenging.
yooooo, I remember watching this in 2017 but i forgot about it then I got it in my recommendations. thanks to my recommendations for resurfacing this treasure i lost
My little brother and I had a similar ,,fun“ little game we used to call ,,21“ easily rules, everyone counts up from 0 to 21 and the person who says 21 looses, you may only count up by 3 numbers (again, similar to doctor Nim) I figured out after I get the number 4 I have already won because no matter if my enemy picks 1/2/3 i‘ll just say 3/2/1 and land on 8 as we continue the same strategy and land on 16 the enemy counts up by 1/2/3 i just pick whatever makes me land on 20 so my enemy has to take 21 making me win
Idea: have 13 coins. Line twelve of them up, and flip the last coin to determine who will go first. If the flip says that you go first, add the last coin to the line, and act like that was what was going to happen all along. If the flip says that they go first, pocket the coin, and act like that was going to happen all along.
underrated idea. GREAT
Wouldn't work twice for the same opponent though
@@LancerloverLL if they catch on to the strategy that is. Some people just don't see it.
@@MLWJ1993 seriously did this back and forth with someone for half an hour. He genuinely was trying to figure it out
@@LancerloverLL winner picks who goes first, ez
That's pretty friggin' cool. Always amazed with the clever ways engineers could 'program' arbitrary rules or mathematical stuff to play out via purely mechanical means.
We studied pneumatics and hydraulics in our Mechanical engineering course. You can use them to do purely mechanical automation and programming.
It's essentially the same thing happening in your modern day computer, except that instead of a few dozen switches, you have billions of very tiny ones.
@@Banzybanz I once had the dream to make a logic controller out of pneumatic relays rather than transistors... I got over it when I had trouble scrounging the parts
Your always amazed with engineers programming arbitrary rules? Where else have you been amazed by engineers programming arbitrary rules ?
@@OneHunnitNoCapStannitOnBidnisz This game here, early transmissions, mechanical computers, analog calculators, complex astrological calendars built thousands of years ago that could accurately predict the position of the sun today to a precision we have trouble matching.
Lots of stuff! I'm a programmer, and it's fascinating how people solved the same problems we solve today with purely mechanical principles. Sometimes I'll have trouble working out a problem, then you think people used to have to solve the same thing I'm struggling with translating into code with a powerful digital computer but using only stacks of precisely tuned gears and chains, vacuum tubes, or plastic spheres interacting with plastic switches as it fell down a gameboard.
Pretty neat stuff.
Heron of Alexandria appreciates your amazement. Creating mechanical programs for audience entertainment was an interesting diversion.
How to win: Use maths
How to win if the opponent has caught on to our strategy: Cheat
The secret ingredient is crime
Just hack the mechanism
I changed the conditions of the simulation - Kirk.
Perfect Strategy
Where from Earth do people say maths?
“NIM” is “WIN” turned upside down.
😮
You don't to be smart to know that, also don't comment with shitty emoji
Jackson shut up
# turn it upside down, not flip it upside down.
@@jpnrndr7983 You fr just commented "you dont to be smart" and "dont comment with shitty emoji" m8 it sounds to me like your grammar is the equivalent to an 11 year old Spanish speaker who's been playing around with duolingo for the last week and a half so I suggest you stfu
played this with my young nephew. only instead of coins, marbles, or pegs, there were sweets. and instead of losing, if there were no sweets left to take, and it was your go, you'd have to take and bite into a wedge of lemon.
because what else are nephews for
I like lemon so why not
Barney McWhat honestly this is the better version of the game to play, as it isn’t inherently rigged, there is actual strategy. If you’re losing, you can take 3 sweets per turn, forcing your opponent to take one. If they choose to take more, you can force them into eating the lemon. If they don’t, you at least get the majority of sweets...
I am honored to make this comment have 666 likes because this is quite devilish
As a young child I would straight up eat lemons so I would have loved your game.
@@goclbert wth
Dr. Nim hates him for this one simple trick
This simple trick can increase you IQ size by 16!
@@babafrigarodolfo6889 I didn’t know IQ scores could get to 2.092279e+13
@@iboiiiii i mean its recomended for 9/10 nims
Lol
@@Harrazmo ??
From the screenshot I thought Dr. Nim would have some mechanics hidden inside. It's simplicity makes it even more amazing. It's pretty much a mechanical flowchart!
I remember seeing a version of this game on an old show called cyberchase, they even explained the same group of four trick and a version where you dont want to be left with the last marble. Kinda neat.
CYBERCHASE WE’RE MOVIN
WE’RE BEATIN HACKA AT HIS GAME
COSMIC WORLDS, FREAKY PLACES THAT WE'VE SEEN!
We’ve got the power-of 1, 2, 3, 4!
Oh yes the cartoon with the Bird that sounds like he chain smokes cigarettes. Great show
@@bagelz3359 he was voiced by gilbert gottfried
Thank you for this explanation. I have a new proffession as a NIM gambler and have won alot of money using this strategy to outwit people on the playground, those year 7s will never see whats coming.
Who says year 7’s
@@sqeechysquuchy9076 UK people
Like you're allowed within 500 yards of a primary school.
i'm year 7 and that's offensive.
i know integral calculus
@@ThomasFarquhar2 people in many more places than the UK. I'd imagine most English speaking countries, but I'm not sure. I know that in three out of the four countries I've lived in have been sorted into years like this.
I had Dr. Nim as a kid!! The manual was the most detailed, text filled set of toy instructions I ever got (not including model instructions). If I'm remembering correctly, there was a section at the end of the manual which explained computer programming or the logic needed for one. I remember using that info and programming my own Dr. Nim game in HP Basic on a "time share" HP1000 computer. Oh, and, it was saved on lunched yellow paper tape that you had to reload to play.
lol one of the comment replies linked a pdf version. I checked it out and got flashbacks to my math and computer science textbooks
Jimmy Yuan Hahahahahahaha!!
Must have been a real pain keeping that little bird fed that lived inside the machine (snicker - I used one of those as well)
i added the 256 like for the lols (and the binary) :)
I like pu**y but money comes first...willie d
You could simply sum up the strategy in one single sentence: Make sure there's a multiple of 4 tokens on the table when it's your opponent's turn.
The game was actually pretty popular with aging con men that didn't have the speed in their hands anymore to swindle money out of people with the three shell game.
But the mechanical implementation is really awesome.
Now I'd really like to see Matt do a video on the Mario Party 2 minigame "Honeycomb Havoc". It's basically an inversion of Nim: 4 players, you can take 1 or 2 items on your turn, and the object is to NOT take the last item, whoever does is eliminated.
That's not an inversion, it's literally the same game. You just win if you take the second to last item, instead of the last. The strategy is identical, except instead of leaving a multiple of 3 behind, you leave 3x+1 behind after your turn.
Md, the issue with honeycomb havok is 4 players at once taking 1-2 and it's not an even amount between each honeycomb
At the 1v1 it simplifies to NIM, while the rest is people deciding which of the others can lose or contunue
So... to win when you go first, you discretely add a coin?
Correct me if I'm wrong, but that sounds an awful lot like cheating...
Isn't playing with the knowledge that if you go second you are unbeatable cheating?
iamchillydogg
The game itself isn't inherently rigged. When players use a strategy that never fails, it's not cheating, it's just simple strategy. They aren't changing or breaking rules.Just taking advantage of a winning maneuver. Like going against someone in Tic-Tac-Toe, but they have an actual strategy while you're just randomly filling in boxes. If they win, its because they had a better strategy, not because they were cheating. At least, that's my perspective on it.
As long as both players can agree on and follow established rules, anything goes, provided it doesn't break those rules. When being taught the game, the new player would learn that there are twelve coins, and thus it becomes one of the foundation rules. Adding an extra coin is breaking said rule.
+Finn Underwood
Knowing the second player always wins is the definition of rigging.
iamchillydogg
Rigging isn't necessarily cheating. Besides, this version doesn't break any rules. It could be called strategy in a court of law, and it would have a fair shot of getting out scott free, if you compare it to adding the coin. One of these tactics is subtle, one is not. Adding the coin makes it go from a strategic misdirection and manipulation into downright cheating and lying.
Note: I am going off of MY definition of cheating, which is simply breaking rules of a game. Having a strategic advantage is permitable if no rules or regulations are broken. It's not really fair, no; it's playing dirty. Playing dirty is frowned upon, sure, but it isn't breaking any rules.
the game is inherently unfair. trying to say that player 2 is using a "strategy" is nonsense. there is a right way to play the game as player 2 an a wrong way. it's utterly binary. on the other hand there is no correct way of playing player 1's role other than to quit. there is no strategy. there is litteraly correct an incorrect. thus player 2 is already cheating because if he is playing correctly player 1 can't win. no matter what happens. the presumption of playing a game is that you can win. if one player cannot win then that is cheating. if you say it is not cheating then it is not a game. thus if playing for money it is stealing. which is a form of cheating. if not being played for money well it's not longer a game so you can't say it's fairplay because it's not a game. it's a time waster. but it can be argued that your cheating people out of there time if they do not understand the player 2 = winner strategy
*Doctors hate him! Australian man beats game with this one simple trick!*
Have laws changed in your area? (*insert pic of girl in bikini in handcuffs*)
*pulls out a sledgehammer*
Try not to gasp when you see what the game looks like now!
And the internet can't even
You won't believe what happens next.
The levels of video editing is unreal on this on. (Multiple Camera Angles and Text Overlay WOOT!!!)
Thanks! I do what I can. Probably spent too long on the text overlay. And one day I'll get a better second camera.
+standupmaths The anticipation at @9:50, flicks the equalizing paddle, and does not give a play through.
+tejasviization Worlds better than Haran's nauseating wannabe MTV-style action zoom woobly cam.
tejasviization
Here is a trick to slip in an extra coin in case you are the first one to play. Or lets say there is a dispute to who plays first.
Throw 12 coins on the table .(Not in a straight line. You can place the last coin with dollar bills aside)
Now take an extra coin out of your pocket and ask the other player for heads or tails and the winner plays first.
If the other player wins the toss, GREAT ! Put the toss-coin back in your pocket and let the game BEGIN !.
If YOU win the toss, no problem, casually put the toss-coin in the play to make it 13 coins :) and let the game BEGIN !.
Very cunning! You, sir, own the art of diplomacy...!
The epitome of "Heads I win, tails you lose"!
Wow, that's pretty impressive the level of design of a plastic kids toy in the 1960's, also way to teach kids the system is rigged against them.
John Beauvais
Why? I mean its not like people were any dumber in the past (actually looking at the news I'm starting to think it might be the other way around lol)
max mustermann yeah totally no way this generation is dumber than the 60's why because kids are more intelligent than ever according to study's
John Beauva
Imagine having the Internet back in the 60's. It would be like having The Library of Congress in your house!
Well, you know that in the 1960's they put a man on the moon using sliderules and an onboard computer with less computing power than a digital watch from the 80's. I suppose they also invented computers so, why couldn't they make a clever plastic toy?
Wow, that is a really well-designed bit of plastic.
You could say... it's fantastic
Niklas Gransjøen how so?
James Collier r/woooosh
Hairline
Niklas Gransjøen no... fanplastic
I remember playing a game like this with my second grade class called 21, where you could say one, two, or three numbers in a row, and whoever said 21 lost. So, for example, player one goes 1,2 then player two goes 3, player four goes 4, 5, 6. Then if someone had to say 21, they were out and we started again. The last person left won. I remember being very proud of myself for finding out the trick described in the video
I played it to back in early 90s
+bob bobby
*too
Ive played it recently. Its called 21 dares. The loser has to do a dare.
what if he said 20? what if somebody take 10/12 coins? I never knew about this game, just want to clarify this
what if he said 20? what if somebody take 10/12 coins? I never knew about this game, just want to clarify this
Periodically this comes back round in my recommendations, and every time for 6 years it frustrates me that Matt never demonstrated beating Dr Nim using the equaliser paddle...
This was my data structures project.
We make the game of Nim (take 1 or 2) with n number of marbles, the computer generates the decision tree for it, assigns values for each node, then makes a decision on its turn using the MinMax algorithm.
Good work! It's a nice game to decision-tree as the optimal-play strategy is easy to follow.
standupmaths
This is particularly true for zero-sum games like Nim.
What's interesting about the 1/2 version of Nim is that its tree has a number of nodes that increases according to the Fibonacci sequence (exponential growth in the numberof nodes) as you increase n, which is intuitive since you either take one ball and go one direction in the tree, or two balls and go in the other, so the number of nodes (let's call it V(n)) is:
V(n) = V(n-1) + V(n-2) +1.
And of course solving this gives you the closed formula for the Fibonacci sequence + a constant.
@standupmaths Relevant XKCD xkcd.com/832/
Rule #1 of XKCD club: every situation has a relevant XKCD. Congratulations on being one of today's 10,000 xkcd.com/1053/
Finian Blackett What is XKCD?
At 5:23 - "Um sir, you have 13 coins."
5:25 - *Removes a coin* You were saying?
sleight of video cut
Glad someone else saw this
Exactly
@@robertgarza301 no it isn't, you need to turn it upside down, and then flip it left/right
Instructions Unclear
Won the lottery
Oops! :P
I hate when that happens.
kemboy323 thats unfortunate
im so sorry about that
kemboy323 im sorry for your loss
I had Dr. Nim as a child in the 60s and like you I was fascinated by how it worked and the math behind it.
Why does this keep appearing in my recommend list every few months?
RUclips keeps forgetting that I've seen this already. Does this happen to anybody else?
Yes. RUclips assumes I forgot I watched a video and tries to serve it up to me again. It’s so annoying.
Yeah me 2
You need to beat the game, or else it will keep popping up
Press the menu button, select "not interested", "i saw this before"
Yep
How the hell did somebody invent this game? It’s insanely smart.
It was a bored mathematics professor apparently.
Like many games, it was likely just invented by a couple of bored soldiers that didn't get mathematically solved until much later.
late reply, but a similar version of this game exists in a kids game that my friends and I used to play. It's called 21, and basically you count but you can only say 3 numbers and then your opponent continues. And whoever reaches 21 loses and gets some arbitrary punishment. So the goal of the game is essentially to reach 20, so your opponent has to say 21 and lose. I, and many other kids, actually independently found this trick because it's not that hard to figure out. SO it's a fairly widespread mundane game, any many versions of it exist. It's not as universal as something rock-paper-scissors but it's certainly akin to it. And it's quite pointless to ask who invented those kind of games. It's a pretty simple game, so it's reasonable to assume that many versions of essentially the same concept were invented in many places independently and one version got standardized.
They didn't have the distraction/hazard of social media.
@@stevejordan7275 bro RUclips is partly social media
Cool! Didn't know there was a plastic verstion of nim. Back in the programming lectures at school we developed this game. It was meant as demonstration for us that AI's in games are not really AI's. In our version it were imaginary matchen wich the opponents have to get from the stack. That the "AI" not always wins, we put some randomness into the number it chooses to put the matches.
S
And you didn't title the video "The Secret of NIM"?
Lol I was thinking of that too. That is one trippy movie for kids, I watched it recently during an acid trip and had my mind blown lol
NIHM
@@seancascanet3428 NIMH: national institute of mental health
dang it I'm 6 months too late
He shouldn't have
> TFW when your plastic toy has a doctorate and you haven't
and your soda
+Noel Goetowski hah fair point. I've just been outsmarted by a drink!
+Dan Dart "That feel when when"? What the WTF?
+Guepardo Guepárdez Nah nah, That Face With when...
+phoxxentswrath I thought it was That Face When when tbh
thank you for telling me how to hustle drunks at a bar
thanks
+
+
He didn't tell you how to casually introduce an extra coin to the game. Something like that could cause a fight
Yup
the fact that this thing is technically classified as a computer fucking amazes me
John Gaquin technically, computers was just the name for dedicated mathematicians, who were trained to process equations. The computing machine took its name from their role. So theres another thing that used to be classed as a computer; people. #themoreyouknow
That's because we throw around computer with absolutely no specificity. What you used to watch this video is a general purpose computer. Inside of it however is an example of a more specialized computer: the graphics card. it is a whole computer unto itself but ill suited for general purpose computing due to it's high degree of focus on vector based calculus. In printers you can find highly specialized computers that require massive reworking to be recognized in the same vein as an ordinary desktop computer and I'm not talking cosmetic changes.
This computer is specialized in solving one specific equation. As such it's simple enough that you can easily see how it works with only elementary arithmetic and rudimentary mechanical knowledge.
this isn't just a computer this is perfect gaming AI
John Gaquin Its most definitely a computer. Not a complex one, but one nonetheless.
A computer that uses gravitational potential energy rather than electrical energy.
i literally had a player in a DnD campaign use this to trick the BBEG out of a world destroying weapon... "I challenge the Warlock to a game of Nim"
Warlock (me as DM) rolled a 1 and thus, the Warlock fell for it...and went first...
Gotta say, it was a smart move from the party's Barbarian, who was the only one above 1/4 HP...if they had tried to fight it would have been a loss...
Dream Wolf liar, barbarians aren’t smart enough to know about this
@@lextatertotsfromhell7673 The Barbarian was a bit smarter than most, he was a professional gambler (sleezebag scammer) of course, whenever he lost his temper or lost a match, he just killed the winner...
@@dreamwolf7302 omg thats amazing. I love it and want to do this in a campaign
Cool
Dream Wolf And the warlock accepted defeat?
NIM upside down is WIN hmmmm...
I think you may have somthing there
hmmmmm
It would be ‘WIN’ if you flipped it as well. Otherwise, NIM upside down would be NIW
HMMMMMMMM
Just spin it 180
I remember having to find a way to code this is high school for a final exam, but we called it match sticks. We had to program different difficulties with the hardest being “impossible”, where the program always wins. Looking back I never knew it was anywhere near this deep
PSA: It was patched last update :/
It works again after patch 1.56
too op and game breaking, pls volvo fix
Thanks, I missed those notes!
They updated their privacy policy
Haxor inator sorry but in patch 2.7 there is a bug where dr. Nim doesn't go.
The way he says NIM every time reminds me the knights who say NI
@Teun van Diedenhoven
Stop *it.*
@@My_initials_are_O.G.cuz_I_am NEE NEE NEE NEE NEE, We demand a shrubbary!
@@My_initials_are_O.G.cuz_I_am Shrubber-plead for your ignorance to one of the best comedy flicks ever published.
????????????????????????
@@slkjvlkfsvnlsdfhgdght5447 reference to Monty Python and the Holy Grail ( ruclips.net/video/zIV4poUZAQo/видео.html )
1960's Game makers hate him!
Click to know how -->
3:00 You're going to show us the secret of Nim?
I guess it's dr.nim's go
The secret is there's really a super-intelligent mouse running it inside that's voiced by Eric Idle.
davincent98ko
Haha
I belidva that the top 3 plastic things control it all. And that it always ends with the last peg open
To beat this, switch it back to your turn and just go again. Then declare computers will never be better than humans and viciously hammer and destroy the game board.
Bits of Pulp this is the best.
Yeah but these things probably go for a fortune on Ebay, so you lose.
ez clap
Nym is a character from Shakespeare, derived from an old word "nimmer" meaning "thief"
...which comes from the old English word "to nim" meaning "to take", which is more likely what this game was named after.
In German, you say "Nimm!" For "Take!" ...
@@scepticusverisimillimenonm8450
I really like candy, so I'd always lose this game because I'd always take two. :(
@@scepticusverisimillimenonm8450 English derives from celtic but foremost, from german...
Dr. Nim's AI is to OP, plz nerf
xD It's not rainbow six siege or so xD
I don’t know anything about this game other then what he explained but couldn’t you just release two balls immediately after each other so the ‘counter’ sees them as one balls, force the ‘computer’ to loose count. This way the computer will make all the moves to lose without knowing it. It’s a simple contraption and it seems that counting for this computer takes way to long, unless this is explicitly against the rules or the button is designed in a way to prevent this you should theoretically win every time
Justin Moody r/whoosh
Sakurai Plz nerf
@@justinmoody9784 he said "if you play by the rules you wil always lose." I havent read the manual, but id bet thats against the rules.
Story of my life - getting beat by a 1950s plastic computer.
okrajoe what is the story of your life?
Vitorruy1 They just told you
1960s*
1960
okrajoe 1960’s
Does this still apply to patch 2.0.17 ?
No, this has been hotfixed apparently. Supposedly, there's someone else who claims they've been doing something similar on the PTR, so we'll have to see once that goes live.
Thank you PBS Cyberchase for teaching me as a child how to beat this game.
PBS children unite!
“🎶PBS Kids!🎶”
In the mid-1960s, I got an Amazing Dr Nim for my birthday when I was about 8. It was my favorite toy! The manual is really good and gave eight year-old me a lot to think about.
"You can tell it's 1960's America because there's a wholesome family having fun, with GUNS in the background."
I'd like to say you're wrong but it's very true
Rather, "You can tell it's 1960s America because there's a wholesome family having fun, due to the fact that they have guns in the background".
Back when guns were everywhere but mass shootings were almost unheard of. Kids brought guns to school to target practice in PE. Imagine it. People like to make fun of boomers who blame video games for mass shootings, and I'm sure those people are atleast mostly wrong, but they are on to something in the sense that something did happen. Be that video games or something else, some force or influence, SOMETHING did screw up the culture.
I had a bunch of 60s games from my mom. The happy family is par for the course but... The guns are kind of new to me lol
Electronic Adventures tell me more about that “well regulated” part.
We had a shooting range in high school. Politicians will not disarm me.
It's 3AM, not sleeping and what am I doing? I'm watching a video about a guy explaining the strategy of a game from the 60s and I'm enjoying it.
Reny Putman I’m doing it right now
Me too. Always find the most interesting stuff at 3am
Right lol
Reads this at exactly 3am
Well, the Dr. Nim automated version of Nim from the 60s, but the game itself is from the 1500s or (most likely) earlier.
After 5 years, this got recommended again. Welcome back Nim. I think I got it recommended for the stone game in SMT Strange Journey
channel named Stand-up Maths
*sits down*
me:CLICKBAIT
I got it
I got it too
I got it also
I got it aswell
I got it either
5:20 The mystery of the disappearing coin
6:43 oh there it is. Nice Magic trick Mr. Parker
I swear to god i counted 13 coins at the start until you demonstrated then there were just 12
Mo cu AWP There are 13 at first.
At 5:24 the camera changes from 13 coins to 12
Mo cu AWP same
NexGenInsanity a
Cringe Master 9000 I quadruple checked and i count 13
I'm homeschooling this year and taught my kid a 3 row version I played in math class on the chalk board in 1992. I always thought the name Dr. Nim was strange name. I never knew about this until I googled and found your video. 30 yrs and I remember vividly how hype we would get over playing this. Teachers are wonderful ❤
Nice save with the edit at 5:24. It was about to get awkward with 13 coins! :)
Also, love your videos! You are an inspiration to us all
Ha, very well noticed! I had accidentally left my bonus coin on the table when setting up.
+Naksahtanut ha, I also noticed that but, by the time it got to the end I forgot :))))) good memory! P
Naksahtanu
Naksahtanut moi
Basically for a tl;dr
Make them go first, make sure 4 marbles/pennies/whatever are taken after you go, being sure 4 are taken after both players go. Do this and you win every time.
This might have been clearer if he had used 4 red marbles, 4 blue marbles, and 4 green ones. Then you'd really see how Nim leaves the "board" at the end of his turns.
Dam i don't think your speaking English
UnKnOwN player59 ironic
David Bethke useful for teaching kids multiples.
@UnKnOwN player59
-Dam- *Damn*
-i- *I* (capital "i")
-your- *you're*
Add a full stop (period) at the end & you're all set.
_I guess you're not speaking English either...?_ ;)
Hi Matt, love your vids
Thanks! I love your comments.
+standupmaths I loved your book too btw
And pi is better than tau. It is as simple as that.
Why? What if you want to find the area of a circle/sphere?
Yes, but all of the equations using tau, could you not just use 2*pi?
I'm glad this was in my recommended 5 years later. This is some cool stuff!
seems like cheating adding another coin
Gustavo RockyTNT but they would want you to go first because they figured out the strategy. so now they are in the situation if you take 1 coin.
Warange1x25 If it's a strategy it's not cheating.
Since it changes the game conditions, it's cheating. It is a sting, though, so it's normal.
Joseph Engelhardt Changing the conditions of the game is cheating? Well shit, u better go tell weather not to fuck up sporting events.
Once a person knows how the game works it only makes sense to trip them up.
"Weather may change" is part of outdoor sporting conditions. Slipping an extra coin in while the other player isn't looking is like deflating a football.
Thank you for telling us the secret of nim
Ha
I see what you did there.
Nice!
Came here for this comment.
Wasn't disappointed.
An American classic just like the board game
This vid is recommended every year to me.
I think this game was the inspiration for creating the mini-game Honey Comb Havoc from Mario Party 2.
Which by the way was so fun beating my friends and the CPU at it as I knew how to manipulate them to getting the bee hives.
I have no idea why this was recommended but i watched it anyways for some reason.
my first experience with this game was in Tales of Phantasia on the GBA. computer always picked a random number and would let you pick who goes first, or something. basically giving you the ability to beat him if you were smart enough.. but the game was also timed, so you had to do the math quick. loved it.
This seems like a board game you would find in an insane asylum
Cue Dr. Ashens staring into a numbers station broadcast with Tetris music while in a straitjacket.
Wouldn’t board games in an insane asylum try to help people become less insane?
Or put you in one, really.
Nah, the plastic pieces are too sharp for that.
@@nightlydisaster5183 You'd think, but when I was in hospital one of the only board games in there was a game called "mind trap". Which i though was hilarious, despite the fact that it's very existence was making me paranoid.
Idk how many times I’ve seen this video pop up in my recommended tab over the past like 4 years
Same. Here we are again!......(I’m totally watching again)
rotate NIM upside down and you get WIN
+Simon opdebeeck Did you say COINcidence?
+Formulka Also, if you rotate the NIM board upside down when you've finished a round, all the marbles will load themselves back into the top part, ready for the next game. Wins all round
You've cracked the code!
Illuminati confirmed
but wont all the marbles fall out?
5:20 Shoot, I've been doing this with 13 coins?!... screw it, we'll keep that footage in there
Bryan M glad someone else noticed that too😂
So this was the original dark souls?
tupe 12
XD
666 likes
Drop 1 ball *Mauled by cougar*
I loved this toy as a kid.... used it to do my math(s) homework! Ahh that rhythmic three-marble-drop sound of defeat brings back such feelings of failure.
If you're gambling using this strategy and have to put down a 13th coin so you'll win, you'll get murked by your opponent.
Hey you set the rule so you can go second, if they want to change the rule,you can also do it.
Besides,if the opponent dont know the secret,you can still win even tho you go first
Just add more coins, so using 21. Let them choose to go first, or if you do. Start off slightly differently by only taking 1 at a time and at some point along the way, just ensure that the remaining coins are a multiple of 4 (4, 8, 12, 16) at the end of one of your turns. Then revert back to using the strategy explained here and you will always win!
If they try to outsmart you and say "Ok then whoever takes the last one LOSES not wins" then you can say alright, and do exactly the same but make sure that at the end of your turns the remaining coins are a multiple of 4 plus 1 (5, 9, 13, 17) and then again fall back to watching what they take and always make that up to 4 on your turn. Then you can force them to always take the last coin instead of you taking it.
The only danger with that is that if they found out your strategy then they will be able to block you from reaching those multiples, but by this point you've probably played them so many times you can just call it off first or let them win once for the sake of it :D
Simple and no cheating :D
This reminds me of an episode of "Cyberchase."
One of the first few episodes. The dragons right?
Nathan Applegate
The best theme.
Yes. It was a Japanese Samurai themed episode
the shangra la one right?
OMG I loved that show!
2+2 is 4 minus 1 is 3 quick maf... Oh Dr.Nim won again
Everyday maf on the block smoke tree big shack..
*SMOKE SAUCE*
Banter
Nim needs to go first
Ah, a recommended video where is hair was still on top of his head instead of on his chin XD
Which looks much worse
Dude lmao how is he supposed to control baldness, with a math trick?
@@compoflask6262 Looks like he did actually try to control it.... not a good idea imo
I had a Dr. Nim way back when. I actually wrote a BASIC program to play the game on the Time-Shared HP in New Hampshire via TTY based on the game's manual back in 1972.
I've played multi pile nim. Great fun. I imagine you greatly love it as you can work out your winning strategy in binary! Great video Matt!
Shift the angle of the red board to make the pellets roll back to the original position by themselfes.
you dont have to move them by hand
Harder to present on video though.
We used to play this with a pen and paper - had no idea a mechanical version existed
A substitute maths teacher taught us the game - thanks, Sir ❤
2:20 "And just to rub it in, as it wins, it puts the lever back over to say it's now my go to suck."
*awkward silence*
"You can tell it's 1960s America because there is a family having fun with guns in the background"
My sides
+IceNoob88 we haven't changed at all?
+ketchup143 Just a bit. Sadly.
+IceNoob88 As much to the point: A WHITE family with guns in the background.
+delton No, the picture of the family on the box is also racist. But while the Chinese caricature is racist specifically against Chinese people, the whitewashed family on the box is racist against everybody who's not white by implying that only this (semi) nuclear family of white, middle class people is the norm, and anything else is an aberration.
+Izandai so you want a family from each ethnic group printed one after the other? Get out. A single image does not suggest that its the norm.
I remember seeing a computer version of this Nim game using 21 "matches" (or any other item) where the object was the opposite - to force your opponent into having to take the last match. The strategy was the same, though.
This game is brilliant. For many years years my kids beat at a game they called '21', the aim being, whoever reached and said 21 would lose i.e. player A counts 1 and player B counts 2,3,4 and so on, up to 21. Exactly the same mathematical principal but by ending on that odd number i.e. 1 greater than a multiple of 4, they forced me to lose every time. I never ever worked it out, they had to explain it to me. Admittedly I was gutted, but also very proud that they had outsmarted me.
I'll be scouring eBay for a copy of the original Dr Nim for the foreseeable future.
Excellent video!!
Give it to them, then tell them they are out of the Will, see how they like that - Check and Mate!
And once again, you do not disappoint, thanks
I worked out how to win this game every time when I was 9. I have always loved working out things like this.
The strategy isn't that impressive, but the physical implementation of it is amazing! I love physical computers like that.
A variation of this was given out one year as a GCSE Computer Science programming project. The variation the students had to code had 21 sticks to try and mask the maths needed to always win.
Now we know what the secret of nim is. *cricket sound* I'll just walk myself out.
+Mihovil Beck I see what you did there.
+Mihovil Beck Mrs. Frisby would be so proud. Except for the (somewhat necessary) spelling difference...
+Mihovil Beck LOL
ErizotDread Excuse me, pardon me.
nychold
lol...BRIIIIIIIIIIIIISSSSBEEEEEEEEEEE...oh no, Auntie Shrew!
A slightly different version of this game is played in the 1961 French New Wave film Last Year at Marienbad. The character who plays it uses it as a sort of parlor trick, fascinating all his fellow aristocrats by his unmatched skill. It vaguely serves as a metaphor for this character's controlling and manipulative nature, but it's never demonstrated in the film that it's a hermetically sealed set of forcing moves determined from the outset, so it's very cool to see some of the mechanics behind it.
Roger Ebert liked the movie a lot more than I did; neither of us seem to have made much sense of the game.
Thank you for teaching me the secret of NIM.
Underrated comment award winner.
Incredibly clever, ticks tocks and toggles, marbles on a plastic board. Could this have been the inspiration for Turing Tumble?
NIM upside-down is WIN
backwards and upside-down
shawn wicks yes definitely NIM backwards is DEFINITELY win it's not like there's no w or anything
shawn wicks bro.... NIM backwards is MIN with a reversed N..... smh
Ethan Ho okay? What are you trying to get at? If you're saying it like a list, as in 'NIM upside down is win, the same is true if it's backwards' that's incorrect. Or if you're saying it as a movement, as in 'I flipped the letters in NIM backwards and then upside down.' It's still incorrect. If you flipped the letters in NIM in they will not spell win, not unless you had a mirror, but that's cheating.
Ethan Ho,
not backwards, just upside down. write it out and flip the paper.
it's not a piece of plastic from the 60s
it's THE piece of plastic from the 60s
Jhet_writes
But is it - ThePlastic27?
max mustermann dead
DasherMega1// xXDarkRoyalsXx
Dont care.
max mustermann ok
LUL
NIM upside down spells WIN cause it always wins!!!
Elliot Lockett no, he is right.
+Ethan Macmillan Actually, WIИ
Actually, ИIW
Jesus fucking Christ, Ethan was right. Flip the comment upside down and NIM becomes WIN almost perfectly.
Ethan Macmillan 10:18
Still waiting for that video on multi-pile NIM by the way
We learned about a version of Nim in the game theory section of an upper-level mathematics course! It's an example of a game in which there exists a winning or optimal strategy, where by playing perfectly one player can always guarantee a certain outcome (in this case, beating the opponent). As discussed in the video, depending on how you configure your version of Nim (i.e. number of starting coins, marbles, etc.) you can always guarantee that the first or second player can win by playing perfectly. The mechanical computing board is a fascinating and a terribly clever design!
Tic-tac-toe is another interesting example because in some sense both players have an optimal strategy: in any game of perfect play neither can win. By responding to the first player's moves appropriately, the second player can always force a tie game. No one-sided winning strategy exists, unlike in Nim where one player is guaranteed to lose.
Can a mechanical version of tic tac toe be made?
@@louistournas120, I think a mechanical tic-tac-toe playing system is certainly possible and sounds like fun! As you may or may not know, recreating the algorithm for playing an optimal game of tic-tac-toe is a common introductory-level computer science/programming class assignment because most people know how to play from experience and it helps students practice thinking like a computer (checking variables, logical decision trees, etc.). A mechanical system (perhaps using weights, balls, or levers to mark player moves) for deciding optimal tic-tac-toe moves could certainly be engineered. Maybe it would instruct the human player where to place the mechanism's chosen tic-tac-toe marks. I picture something like a box that fits on a small tabletop, with mechanical switches on top for players to mark their choices. Inside, those switches could be connected to little barriers that redirect a little ball through a branching path with multiple levels. By blocking certain pathways and leading the ball to one of nine end-of-path choices, it would represent the mechanical computer's choice of placement. There might be more elegant solutions using weights or springs but that's what comes to my mind. I think your idea is a good one!
@@doodlevib :
Yes, we did that in a computer science course which was about assembly programming. We had to draw stuff on screen ourselves. I wrote a function to draw a vertical line, a function to draw a horizontal line, a function to draw a circle, a function to draw diagonal lines.
We didn't program the AI side. It was suppose to be played by 2 human players and the code detects when someone wins.
Years later, I did a version that runs on iphones/ipads.
@@louistournas120, thanks for sharing. Some classmates of mine made a tic-tac-toe playing AI in Python as a class project. The graphical component was probably easier for them than for you because they used a Python module with a library of graphical tools, rather than doing it all by hand in assembly-level language.
A harder AI to program than tic-tac-toe is one that plays a game called "Bagels" (sometimes called "Pico, Fermi, Bagels"), which is a 3-digit number guessing game. There are simple explanations of the rules online. It's not hard for humans to intuit an optimal strategy that gets you the right answer in the fewest number of guesses, but writing out a decision tree for an AI to play that well is much more challenging.
Why is everyone insulting his hair? It might be less good than other people's hair, but it is Parker Hair, after all.
Mister Apple Plus one if ya don't get it look up the video parker square
Haha
Mister Apple
They are just disappointed that standupmaths didn’t dye his hair like a loser.
I personally prefer short, naturally colored hair.
Mister Apple, how many licks does it take to get to the center of a lollipop? ¨The World Will Never Know¨
It's not too late for Rogaine.
5:25 - Realises he'd put 13 coins down.
yooooo, I remember watching this in 2017 but i forgot about it then I got it in my recommendations.
thanks to my recommendations for resurfacing this treasure i lost
My little brother and I had a similar ,,fun“ little game we used to call ,,21“ easily rules, everyone counts up from 0 to 21 and the person who says 21 looses, you may only count up by 3 numbers (again, similar to doctor Nim) I figured out after I get the number 4 I have already won because no matter if my enemy picks 1/2/3 i‘ll just say 3/2/1 and land on 8 as we continue the same strategy and land on 16 the enemy counts up by 1/2/3 i just pick whatever makes me land on 20 so my enemy has to take 21 making me win
was looking at the title of that book upside down and NIM spells out WIN
The first game I remember having when I was little in the 1960s - I had no idea what I was doing. I just liked playing with the marbles.
Would love to see a follow up on the 5-year anniversary of this video! Maybe talking about the multi-pile nim strategies?