Can you solve the rogue AI riddle? - Dan Finkel
HTML-код
- Опубликовано: 8 сен 2024
- Practice more problem-solving at brilliant.org/...
Sign up to be emailed the solution to the bonus riddle: brilliant.org/...
A hostile artificial intelligence called NIM has taken over the world’s computers. You’re the only person skilled enough to shut it down, and you’ll only have one chance. Can you survive and shut off the artificial intelligence? Dan Finkel shows how.
Lesson by Dan Finkel, directed by Artrake Studio.
Thank you so much to our patrons for your support! Without you this video would not be possible! Jordan Tang, Christopher Jimenez, Juan, Tracey Tobkin, Sid, emily lam, Kathryn J Hammond, Elliot Poulin, Noel Situ, Oyuntsengel Tseyen-Oidov, Latora Slydell, Sydney Evans, Victor E Karhel, Bernardo Paulo, Eysteinn Guðnason, Andrea Feliz, Natalia Rico, Josh Engel, Bárbara Nazaré, Gustavo Mendoza, Zhexi Shan, Hugo Legorreta, PnDAA, Sandra Tersluisen, Ellen Spertus, Fabian Amels, sammie goh, Mattia Veltri, Quentin Le Menez, Yuh Saito, Joris Debonnet, Heather Slater, Dr Luca Carpinelli, Janie Jackson, Christophe Dessalles, Arturo De Leon, Eduardo Briceño, Bill Feaver, Ricardo Paredes, David Douglass, Grant Albert, Paul Coupe, Jen, Megan Whiteleather, and Mayank Kaul.
Sign up for free to be emailed the solution to the bonus riddle: brilliant.org/teded! Also, the first 833 of you who sign up for a PREMIUM subscription will get 20% off the annual fee. Now go solve some riddles!
TED-Ed
I thought nim was unbeatable, you know the toy
TED-Ed My solution is similar to Michael from V-Sauses solution to his number game. You drain 1 level, then compliment NIM's moves. Works everytime.
TED-Ed could u plz elaborate the second riddle. A square from the bar can be any single piece or the four rhs pieces taken together? Is there any another possibility.
Back when I was a child and used to watch a television show called cyberchase, they had an episode with a premise that was very nearly identical to this, with alternating sides able to take a certain number of dragons and the goal was to not be the side that ended up with 1 dragon, which was coloured red, with the others coloured green.
Robert Jarman this game is called NIM. You win it by doing NIM addition. Its too long to explain but search it up. It’s a fun game once u know the ultimate way to win xD
Dont let this distract you from the fact that the AI knew all possible moves and still built a defense system that the AI itself can't win.
true, if an AI can take over the whole world's computer system, then it is smart enough to outsmart you.
Yeah but maybe the facility was not made by an AI...instead it was made by humans and the design was specially made as a safe keeping if something like this goes down
I think NIM would be able to disable the remote when he enters the chamber
Pedro Alves ITS A TRAP
its not actually a killswitch but rather the activation for NIM PHASE TWO. if theres a big red button with "off" written on it, DONT PRESS IT! :D
I'm more interested in how NIM made a button waterproof in electrified water
Meao Gaming underrated comment
Its just covered in a strong flexible rubber
It didn’t, it’s Taptic feedback
@Meao Gaming I'm more interested in knowing as to why this thing pulled a doofenshmirtz and had an selfdestruct button on himself
Flex tape
Nim says “f*** this” and just drains the whole thing
Why aren’t there any replies
That should have been NIMs plan the whole time but was sabotaged
Me just like: You counted on logic but not random plots derived from books, movies, and mal-adaptive daydreaming, your days are numbered NIM!
You: "Alright I've reached the bottom"
You: "Wait where's the button?"
NIM: "Yeah I realized that was my only weakness so if I got rid if it I would win"
*realisation*
Someone Who Exists
You : have the most handsome face.
You: *punches NIM's glass shield*
NIM: why did i make that out of glass
You: goodbye.
NIM: NONONONON-
You: *punches NIM out the case*
You: i got ya now
NIM: oh heck...
You: *steps, kicks, punches, throws and slams NIM on every surface in the room and uses its trapdoors to throw it out to sea*
NIM (last word): looks like i've been defeated
good thing I have a nuke
that i was going to use to destroy Isabelle
gotta get a new one now
@@handsomeharold4698 but NIM hack all devices that includes the computer controling the nuke which it made the nuke useless and there no way to fire the nuke without the computer controling the nuke
Nim really didn’t think this through when he made this.
Nim is more clever than you think, since it's alternating moves and neither can skip, all Nim has to do is to hold his move forever, then you will never be able to get to him.
of course you could just jump out as the water falls through the trap door or wear a insulated diving suit
Cut Dr. Nim some slack he is just a piece of plastic. No seriously there is an old kids toy that plays this with marbles.
Hey I see you everywhere
Eric Law like Sans in Undertale!
Step 1: figure out why nim can only lower the water level by 1, 3, or 4.
In the wise words of Lazarbeam
"My god, why haven't we thought of this before"
I might have the quote slightly wrong.
Maybe because just like AM, despite all of the AI's power and knowledge there are aspects of its programming it will never be able to truly shake off.
2 is just 1 and 1, and it’s not like NIM’s programmed with the concept of sportsmanship
then you go to the third position from disky disk A and select the Noether 9000 and buttons D and E to destroy the laser robot ants and cut the antidote into fifths and use parity to find out what place your in and what hat you are currently wearing with a 10% false positive rate then you get silver by moving counterclockwise then go to locker 64 to find out who ate which crystal then go in groups and add 5 and 7 and square root to escape with 60 bees and at least 16/30 rubies (marking the heavier ones with a +) on planet 3 and after all of that you have to question my sanity, and the answer is ozo.
Step 2: let the water confirm that it has green eyes to win
If I’m the only one smart enough to shut it down, the world is doomed.
Nope I solved it too
Ha ha ha! Amazing one, dude
It's joke, X-ray@@xevarite3750
@@xevarite3750 but you couldn't comprehend sentence above your comment
Solved it super easy!!!
"Hmmm, how can i stop NIM?" *Drops large iron ball into the building's center* "There we go!"
Or you could cause an EMP
@@AbhijayAgarwal the AI took our military funds for making the skyscraper shaped pool
Title: Can you solve such and such a riddle?
Me: Short answer: I can’t. Long answer: I am unable to can
I merely failed to succeed in my mission
Essay: I'm unable to think that I can so therefore I cannot
I am unable to do the can to can this riddle
I am successfully able to fail
"I am unable to can" is the best thing ever
Well, if it calculated every outcome, why would it let you go first?
I said the say thing
It’s Good Sportsman Ship,
I Mean It’s Good Sportsrobot Ship.
you would win anyways, just keep going down in ones until you are 1 under one of the red zones, then go down by 3 and the ai will go down by one putting itself into the lose. If anything, it is a free win and the ai shouldve self destructed the whole building
you would win anyways, just keep going down in ones until you are 1 under one of the red zones, then go down by 3 and the ai will go down by one putting itself into the lose. If anything, it is a free win and the ai shouldve self destructed the whole building
Maybe because NIM won't know you're in there until you lower the water level.
"only one skilled enough to shut it down." shuts it down by hitting a button
True true
Unplug it
The al made sure no one was trained in pushing buttons
U mean he has expertise at pressing buttons 🤣🤣🤣🤣🤣
Cyrus johnson lol
This is the first TedEd riddle I’ve ever been able to figure out, I’m probably more impressed with myself than I should be
Narrator: NIM has taken over the world's computers. You're the only person skilled enough to shut it down. And you'll only have once chance.
Me: Well we're screwed.
mybrigoli21 Hahahahahahahaha!
Me: Sorry humanity, looks like you won't be able to finish your Fortnite-athon.
@@commoncoolchannel8588 No! I want to get laid to brite bomber!
Lmfao
Me: If I'm the best shot, humanity's probabley better off without their computers.
For those who are wondering about nim’s name, the riddle is based off of a mathematical concept of the same name. There is also a board game about it called Dr. Nim.
Okay, but that doesn't explain where the name comes from.
@@beterbomen it comes from an old chinese game that played off of the same concept, and as it spread its name changed a lot. Some guy in 1901 rediscovered it and wrote about it, naming it Nim after the word "nimming," which was another word for "stealing" back then
@@pulchritudinoushog I heard it came from NIM looking like WIN backwards and upside down, but I don’t have a source for that.
nim's longest recorded sentence was : give orange me give eat orange me eat orange give me eat orange give me you
"You are the only person skilled enough to defeat "
WOW WE ARE DOOMED
Let's take the world to doom together
@@gracygarg9632 Yeah! world-wide destruction!
Or NIM could just... You know.. Not lower the water level at all
Edit: FOR CLARIFICATION: we aren't talking about skipping your turn and waiting for the opponent to do a thing. We're talking about inaction. Postponing your turn indefinitely.
@SevenBidoofs NIM could wait until it is in a winning place
WHY can't nim just drain the entire th8ng
John Badcock ik
@Galactic Dragon :v but logically the robot is bad so It's not going to obey your rules
@Galactic Dragon :v So long as it is NIM's turn, your remote won't do anything. Therefore, all Nim has to do, is just, do nothing, and take literally forever to make its first move. You'll die before the water is ever drained as a result. no turn was skipped.
"Only person skilled enough to shut it down"
"You'll only need to press the manual override button"
*Are everyone else idiots?*
Corey Playz r/woooosh
Is*
*Perhaps*
@@desppp_ this isn't reddit and that joke isn't even funny
pete lee its not even a joke its for people who dont get the joke and plus it doesnt have to be reddit
Who else loves these riddles but never solve them
SAME
LOL me
I am there in the group
@@vtp349 yes that's right
Meh
Surely if nim was that smart it would just open the trap doors anyway
AI is built to teach itself, so its prob going to figure out that theres more to its existence than humans and soon it will just screw all of us and build a nice water tower
Matthew Quinn but it didn’t have control and can only flush you out if there’s still water.
NIM should take 7days to make a move and starve you out.
The only winning move is not to play...
For NIM
A Tetris ai did that once
Sans special attack
This term is also similar to mutually assured destruction, where you realize if you do something, you lose
Is that a war games reference
Me: I have green eyes
NIM: You win
Yey another one
Me:I pressed the Red button
Nim:you win
really again
this is becoming less funny
But would i reply ozo or ulu
@@thereisnothingforyouhere2 can you please tell me what this joke is from lol
For the bonus riddle, eat the top right square
In the example of the 2x3 bar, your opponent has a few options after this:
Take the top left -> you take the bottom middle and force them to the last
Take the top middle -> take the bottom right, leaving your opponent in the same state as if they took bottom right.
Take the bottom middle -> take the only available square, top left
Take the bottom right ->take the top middle so that they're forced to one square of two safe ones
Edit:
As a general rule for all scenarios avoid giving your opponent a 1*n bar remainder. If you can do this, it insures that your opponent doesn't make any deadly moves. The killing blow is getting your opponent into a 2*2 L shape (with the top right missing) so they have to give you 1*2
Najanah thanks I was looking for this answer
yup, was checking the comments to make sure i got it right ^^
You can also take the top left and top middle one leaving you with bassically a L tetris block
First player can always win an any rectangular grid, except for the trivial 1x1 grid
This reminds me of a similar puzzle in Super Mario RPG. You and a Hammer Brother take turns removing coins from a box, up to four at a time, the winner is determined by who takes the last coin. The solution is the same, except that since two at a time isn't ruled out you just have to count down to the last six coins and make sure you leave him stuck in the last few moves.
0:12 "You're the only person skilled enough to shut it down"
I don't know about that...
This one was really well designed!
It is way to easy.
This one is literally the nim riddle with a twist
There was a board game based around this “AI” principle. I believed it was called Nim...
Yay Game theory
Mathijs Jans I'm thinking to create this game in c++ but idk the theme is too complicated and unnecessarily hard to understand, I thought instead of 2 knights riding a horse and running into each other, initial distance is 25meters and they can choose how many meters to travel each time (the one who ends at 0 kills the other 😉)
When I first started watching these videos I wasn’t able to solve any of the riddles, but the more I watched the more I realized that the problem solving skills employed are one and the same and afterwords I was able to solve every riddle uploaded since. I think it would be amazing if you guys made a video about problem solving skills.
You might enjoy programming.I would say that's the central skill being tested in TED-Ed's riddles.
I started with HTML and javascript, but you can start in many different ways.
@@trixter21992251 yes I like using flowcharts to solve
Step 1:Confirm that the electric water has green eyes
Step 2:Ask it to leave
Step 3: Shut NIM down
69th like with no reply
Water has no eyes
@@akisa7865 Good job Sherlock
@@TurkeyTueky thank you Watson
Akis A I do have eyes
Nim: *the only winning move is to not play*
Wiksolop72 The true way to win: work out an agreement that's fair
No, the true way to win is throw the remote at the override button as Nim is flushing you out into normal, safe water. If you threw it beforehand though.
The replies make me a little sad that no one got the allusion. Also this isn't nuclear war (yet). How about a nice game of chess instead?
Dakoda Stevens NIM would probably beat everyone at chess
Some of us are old enough to get it. Would you like to play a game?
Chocolate bar riddle: we will label the top left piece "1" and name it from primarily left to right, then top to bottom.
Solution:
Start by taking piece 3.
The opponent will take either 1 and 2, pieces 2, 5, and 6, piece 2, or piece 6.
Scenario 1: Pieces 1 and 2
Your opponent will take 1 and 2. Now pieces 1, 2, and 3 are gone. Now take 5 and 6 off. Now the only piece(s) they can eat are piece 4, which will let you win the game, leaving your opponent poisoned.
Scenario 2: Pieces 2, 5, and 6
Your opponent took pieces 2, 5, and 6. Just take piece 1 and you will leave your opponent piece 4, which will let you win the game, leaving your opponent poisoned.
Scenario 3: Piece 2
Your opponent has taken piece 2. Now take piece 6. They can now only take piece 1 or 5.
Scenario 3a: Piece 1
Now, the opponent took piece 1 in this duel. Take piece 5, and leave your opponent with piece four, which will let you win the game, leaving your opponent poisoned.
Scenario 3b: Piece 5
Your opponent has chosen piece 5. Take piece 1, which will leave the opponent with piece 4, letting you win the game, leaving your opponent poisoned.
Scenario 4: Piece 6
Your opponent has take piece 6. Now, you must take piece 2, leaving you and your opponent to be in the same position as in 3a and 3b.
👏👏
I also came to this same conclusion but I give props to you for explaining it so well and putting actual effort into your comment
2,5,6 isn't an option for him btw since it needs to be the bottom left corner of a rectangle and that would be more like an l
sorryr for the necropost, but this is false. i misunderstood too, but it’s only the bottom left corner of a square.
Wait so we can take more than one square in one turn?
I just realized - this is like a very simplified version of the actual game NIM!
Zaee Shah I am guessing the AI name is named NIM for a reason
@@xRussianbishop If you flip it upside down it spells WIN
altered is a better term, as in the original game of 'nim' going first is assured loss, this has been altered to add the extra layer, which means if you play correctly the normal rule flips, meaning player 2, the ai, loses instead.
I think you're stretching here.
There’s a game we played in school called 21. You start at zero and you can either say 1,2 or 3. You lose if you say 21, a number other than the ones stated or if you hesitate for too long.
Almost instantly people figured out if you keep saying three eventually someone will have to say two and the next person will lose. We used this game to decide which of two people won. But the flaw was that if you started off and said 3, you would win. It’s the same thing here.
That game is easy, just say 4-whatever they said
That's not entirely true to be fair. If your opponent understands nim, they would add 2 making it 5 and then the person who said 3 loses everytime.
If you wanna test it, I'll play with you.
@@Ninguin 3
@@bobartbones7957 I add 1, and win. The 2nd player always wins this.
Think of it this way: If my opponent is at 20, they lose, as they can only choose 1 and get to 21. So I can just pair you off as multiples of 4, always leaving you on your way to 20. If you choose 1 or 3 I choose the other one, and if you choose 2 I choose 2. So your turn is at 0, 4, 8, 12, 16, and finally your last turn at 20.
“NIM” Oh, like Dr. Nim? *puzzle procedes to be a Dr. Nim puzzle* cool
Thats why I'm in the comments
I'm sad that you're the only other person I've seen recognize this
Sawyer Prince don’t worry, I got it too :)
s a m e
r/iamverysmart
"You're the only person skilled enough to shut it down"
about 10 seconds later: pushes button and shuts down AI
me: now that's skill right there
The AI: Simply doesn't bother to ever take his turn.
NIM: I will now take the new name of, SANS
Or....
NIM: IT'S YOUR TURN.
Me: *On a losing level* How about no? *drops the remote into the electrified water* it's gone. It's toast.
NIM: *About to lower the water level*
Me: Sorry, but I haven't taken my turn. So too bad, so sad, nobody cares.
@@castperthewolf3426 Sooooo..... NIM would win technically win, since no one will stop them
If the AI is allow to cheat, then I am too. Simply drop a grenade to break NIM's glass cover, and then the electrified water will zapped it too death. Or I could just show the AI all the cursed stuff on the Internet and it will commit suicide.
@@user-iq7mk3gb9w It's not cheating. Time limits were never added as rules. It's just using the fact that it wins if the clock runs out to ita advantage.
I’ve never solved a single riddle from TedEd.. (´°̥̥̥̥̥̥̥̥ω°̥̥̥̥̥̥̥̥`)
*cries in shame*
It’s cool, me neither...
*judgemental stare* try brillaint if you want to solve one.
Bonny Monstrosity
I solved 2 and I knew how to do this one but i was to lazy to truthfully do it :")
lets make a gang who has never paused this kind of video
Bob Nathan ZeonBe
Oml me tho i used to then i was like screw it
Bonus riddle:
Ted Ed: You and a friend are eating chocolate and the bottom right is poison
Me: I'm allergic so ALL OF IT IS POISON
To chocolate or the milk
@@Ace_Spade Chocolate
@The Charging Turtle that’s sad :(
BOTTOM LEFT
*I solved the chocolate riddle!* You have to devour the top two left chocolate squares first. Then you'll always win!
I think we have our next mission impossible plot
rising raisings Your dp! I thought i had a strand of hair on my phone screen!
I love to see other people who like AI! I have some AI demo's on my channel, let me know if you'd like to see tutorials.
Nice profile
rising raisings wait for mission Impossible 1000
Ur profile made me think I had a hair on my screen
I love that narrator voice.
Asadlittlebean aa
pretentious
@@harrysullivan2460 n
This reminds me of the one episode on CyberChase when they're playing a game with Hacker where they have to take with them either 1,2, or 3 dragons and whoever is left with the red dragon loses
I remember a riddle like this in Cyberchase. It had to deal with dragons, red and green. They had to choose the correct number of green dragons, choosing 3, 2, or 1 at a time. The goal was to not get stuck with the red dragon at the end. It was a good episode. 😊
Me too.
Am I getting dumber or are these riddles becoming harder?
Sebastian Elytron both
I think this should be the easiest so far the childrens show cyberchase did something similar at one point
I love to see other people who like AI! I have some AI demo's on my channel, let me know if you'd like to see tutorials.
64standardtrickyness I thought the wizards dual was way easier, but this one wasn't difficult
All you have to do is work backwards and diagram levels where the AI can force you to lose, and avoid those levels. It’s easier than it sounds/appears
There was an episode of cyber chase with the same premise when I was a kid, except it’s with dragons
@@vineet_anandwow you’re really bad at math if you think watching cyber chase makes me a boomer
That was the only reason I was able to figure this one out!
For the chocolate bar, I am assuming you can only eat rectangles (not rectangles with a missing square) only eat the top right corner, afterwards, no matter the choose, the opponent can only eat the top 2 or bottom right single square. Afterward, either the entire bottom would remain (where you eat the last safe squares) or a 2x2 squares remain (where you eat a single square and put the opponent in a loosing position.)
No
If you do, your opponent could eat the two middle squares, leaving you in a losing position.
Pikafan16543 If your opponent breaks off the middle two pieces after you break off the top right corner, then that means the lower rightmost piece is also broken off the bar as a consequence, making the move illegitimate.
ByteKnight Thank you.
Darkking Ice well according to the narrator and the video that is not a valid move as it is impossible to just break of the top corner square so no with the rules given as the riddle is told your take on the solution is therefore invalid. Especially considering IF the opponent in your example were to take the middle 2,5 you lose either way making it a not so excellent strategy.
And no, breaking of a corner square wouldn’t leave a rectangle to begin with so IF you allow that move then opponent would be allowed to take 2,5 and you lose.
Or he would simply take only square 1 or 6 and win as i already explained how.
I figured out the method but didn't see the pattern.
Same
Same here
I figured there might have been, but I just couldn’t see it.
Fives
Same
This video really brings back all the memories. In Hong Kong many of us played a similar game in school. My version is that two people would take turn and pick a number that’s
There’s a game I used to play exactly like this, but the little difference is that instead of water levels it’s a flower’s petals, you can take away up to 3 of them or pass your turn (the least possible is taking 1 off and passing the turn), and the person that would take the last petal off would either win a point or loose one, depending on the AI’s randomized choice.
*lose
It's Impossible. Only Ethan Hunt can do that.
SideNote im hyped for fallout as well
Ahmed Jojo it’s really good you should watch it
I saw it 30 minutes ago I was entertained
I saw it this sunday it is AWESOME
How about mike hunt?
My grandma and i used to play a game similar to this, except we had the numbers 1 - 6 and we could only use each number once. Who ever got to 0 or was the closest wins. Not only did you have to keep track of what numbers you've already used, you have to keep track of theirs and make sure they can't trap you.
What I learned from this lesson:always wear eletric-proof equipment when approaching a super ai
Yeah but what about the oxygen! Bruh you have to swim 24 stories! There is no way you hold your breath that long! Did nobody think of that?!
@@redchang7271 What I learned from this lesson: always wear electric proof equipment and an oxygen tank when approaching a super ai
Or an emp?
@@diegorafaelgarciagodosonof161 emp system deployed
Enemies super computer destroyed
NIM: The only winning move is not to play.
You: *starves to death*
This was the first riddle I actually solved and I feel proud of it
YAAA these are my favorite uploads you guys make!
This ones awesome!
😁
Mewmacree you
John Walker I don’t understand
cant you just load the internet explorer to lag it out
His secutity system is made with mark zuckberges brain
What?
“If NIM is the one who lowers the water level to 0, you’ll be sucked out.”
Why don’t I just hop out of the raft lol
Electrified water
@@evelynwong4102 I mean you hop out 1 second before the water level goes down to zero, so when you land, the water will have already been sucked out
OMG! I remember doing this for a PE game at my elementary school! It was called "21" because whoever said the number 21 first won. You could add either 1, 2, or 3. I don't remember exactly how I figured it out, but there were a row of certain numbers you had to say to win. If even a single one wasn't said, the other person would be able to say it, and that made me afraid they would win. The big thing is that if you didn't go first and the other person said a number where you couldn't say the next, you would lose. I taught it to all my friends. If you started first, the numbers were 1-5-9-13-17-21 because then even if the person knew about the trick, the best they could do to try and escape would be say 2-6-10-14- and, if they are forced to the 18 point, they have already lost. Whoever said 18 always lost. But, if you went second, it was the same thing. The only problem is wether or not the starter says 1. If they say one, you have to keep attempting to say one of the next numbers, if you are unable to and you reach the 17 point, you have already lost. I don't know how I figured it out, but this reminded me of it so much! You see, if I say "1" then your only options are 2-3-4. Then, if I say "5" your only options are 6-7-8. Then, I say 9, you say either 10-11-13. Finally, I say 17. The big change is that instead of going 1 ahead, you have to remember to go 3 ahead. When you reach the 17 point they can only say 18-19- or 20 as their last turn. You then have an easy win.
This is a game of NIM
InfiniteBro yeah
Yep
I thought i was the only one that got that
There's a big difference (try solving this one with NIM's strategy -- you can't).
NIM has moves 1, 2, 3. You can complement your opponents move to always make your moves add up to 4. (He goes 1, you go 3. He goes 2, you go 2. He goes 3, you go 1).
You can't do that here, and that makes this harder than the NIM game. Here you need specific moves for different water levels.
It’s literally the name of the AI
One of my favorite riddles of the series. Absolutely amazing solution, Thanks, TED-Ed!
Damn I watched a cyberchase episode almost exactly like this years ago- guess that's why I got it right
Barry Marshall I remember that show!
skilled enough? To press a button? Alright
This is just Honeycomb Havoc from Mario Party 2 with extra steps.
that was totally my first impression too!
*_MY NAME IS CONNOR, I'M THE ANDROID SENT BY CYBERLIFE_*
This riddle is well made
detroit reference
VITTXRIO 😂😂😂 Thank you
wake up lieutenant!
its me! Connor!
[GD] bluebird859 *slap*
My name is NIM, I’m the AI sent by cyberlife.
You don't want to start at levels 0, 2, 7, 9, 14, 16, 21, 23, because whatever choice you make, Nim will lower your level to one of these floors. Since you start at level 25 you can win from Nim. When it's your turn to decide, you always lower yourself to one of those levels (0, 2, 7, ..., 23). When you do that, Nim will not be able to lower you to those levels.
An example where Nim tries to prolong the inevitable:
You: -4 (= 21)
Nim: -1 (= 20)
You: -4 (= 16)
Nim: -1 (= 15)
You: -1 (= 14)
Nim: -1 (= 13)
You: -4 (= 9)
Nim: -1 (= 8)
You: -1 (= 7)
Nim: -1 (= 6)
You: -4 (= 2)
Nim: -1 (= 1)
You: -1 (= 0)
An example where you can choose between two levels:
You: -4 (= 21)
Nim: -4 (= 17)
You: -3 (= 14) ( or -1 (= 16) )
Nim: -4 (= 10)
You: -3 (= 7) ( or -1 (= 9) )
Nim: -4 (= 3)
You: -3 (= 0) ( or -1 (= 2) )
Bonus Riddle:
Force your opponent to start with either one of these chocolate shapes:
x
x
xx
xx
xxx
TheRMeerkerk Very well educated.
I am thinking that you can drill a hole into the habitat of NIM and wait until the the water drains
Mission Failed, We'll Get 'Em Next Time.
@Cade Ragan you forgot to add job
*Bonus Riddle*
Note: Capitalized means the pieces taken, and lowercase stands for remaining. S is safe, and P is poison.
ssS
pss
Your first move should be to take the top right square. From there, only 4 rectangles can be made without splitting the remaining bar in two.
*1: Top Row*
SS
pss
If your opponent takes the two squares on top, bite the remaining squares in one move:
pSS
*2: Top Middle*
sS
pss
Bite the bottom right square first.
s
psS
Your opponent will either take top left or the bottom middle...
S
ps
s
pS
...in which case you can take the remaining safe square and leave the poison for your opponent.
pS
S
p
*3: 2×2*
sS
pSS
(The square you bit first would still count in the square.)
Just take the remaining safe square.
S
p
*4: Bottom Right*
ss
psS
Take the top middle square.
sS
ps
From there, the same method from 2 will still work--eat the remaining squares one by one.
*Hey TEDEd...did I get it?*
ZHBG 9224 What if he eats the Middle two right after you eat the top right
Vaibhav Bhootra that would mean he cheats
my brain blew up x.x
You can work from the start as well, given the confines of the riddle, through a surefire method. Specifically:
(A) If Nim is in a position to force a win, they will win.
(B) the puzzle is assumed to be winnable.
After this point, maths becomes your friend. The following four additions are very important.
1 + 1 = 2
1 + 3 = 4
3 + 1 = 4
3 + 3 = 6
4 + 4 = 8
Specifically, all the even numbers up to 8 can be made from 2 moves here (and by extension, as all even numbers are an addition of 2's, can be made by a number of even moves up to the number, i.e. 2*4 = 8, thus 8 1's are 8).
Now, we know we must always be in a position to force a win, from A & B, and that Nim must never be in a position to force a win. Thus the moves must form a pattern of win-lose-win-lose right now. Conveniently, if your going first, this matches the you-nim-you-nim pattern of turns.
Nim wants to be in the other side of this position. Thus, Nim wants a result that could happen on your turn, they want to "slow the game down" by an odd number of turns, forcing the you-nim and win-lose patterns to fall out of sync by and odd number (effectively, be out of phase by 1), such that Nim may take your position.
Hopefully this makes sense, and so how do you force a victory then? Easy, your turn, and Nim's previous turn, must be an odd number. In just two turns you can't go above 8, and we've already worked out "numbers to avoid" being even numbers anyway, as those even numbers can be made by an odd number of additions (resulting in a position flip) As such, we get 4 possible scenarios.
NIM+YOU
1 + 4 = 5
3 + 4 = 6
4 + 1 = 5
4 + 3 = 7
And so, you must play a 4 unless Nim plays a 4, then you must play a 3.
Now the one thing left is what do we do on the first turn. Well we just apply the "Nim wants to switch places with you" approach again, but slightly differently. We know one of the positions you can go to must be a winning position. So nim wants to get to this position. And so we approach a perhaps obvious, but important fact: 1 + 3 = 4
If you play either 1 or 3, Nim will play the other to make a 4, and so if the puzzle has a solution, you must play 4.
This not only works "backwards" from the video solution by counting down instead of up, but also deducing the winning move by discounting the losing ones instead of exclusively observing winning routes.
---
I should say though I feel the 1st move element to this approach is not as elegant as could be, and for the following reason. The rest of this solution extends indefinitely for ANY NUMBER of levels of water. However, the 1st move element can switch between needing you to make a move of 4 as in this case, or in a number of cases needing to make a move of 3 or 1 (e.g. starting position being 10, 17, 24, 31 and so on...), or sometimes needing to just make a move of 3. and I expect that pattern itself has some 'simple' solution which can be derived from this fact.
As to why you would use this solution, well if you "ignore" the starting position "problem" or are able to come up with an explanation and better solution to the 1st move, then this solution doesn't need you to do any more maths or counting than 2 numbers up to a maximum of 7, as opposed to the other one which needs you to count up each level, not difficult for 25 levels, and quickened by "breaking into blocks", but if you've got 10025 levels of water that gets tedious...
i can’t understand this but bravo for typing all this out
@@Multifandomer-ni3ll I was re-reading this as I wrote it 1 year ago (corrected 1 typo).
As stated we can make any even number in an even number of turns. These being two-turn additions.
NIM+YOU
1 + 1 = 2
1 + 3 = 4
3 + 1 = 4
3 + 3 = 6
4 + 4 = 8
NIM+YOU+NIM
1 + 1 + 4 = 6
1 + 3 + 4 = 8
3 + 1 + 4 = 8
These three are all issues, Nim has "inserted a turn", used an odd number of turns to get an even number.
3 + 3 + 4 = 10
4 + 4 + 4 = 12
These are the two last options, but well, we can make 10 in four turns (4+4+1+1), or six turns, or eight turns, or ten turns (1+1+1+1+1+1+1+1+1+1).
We can make 12 in four turns too (3+3+3+3), or six turns, eight turns, ten turns, or twelve turns.
This means the combination of NIM's previous turn, and our current turn must be an ODD NUMBER. (the rest of the proof follows).
I think, although it is midnight so I am doing this sleep deprived maths, but I think that a version of the puzzle with 4399 levels is winnable as well. I think the key comes down to the fact the puzzle levels is 1 less than a multiple of 4. (25+1=26, 4399+1=4400)
In fact, more generally:
1) If the previous turn had a 4 played, play either a 3 or 1 (doesn't matter), ELSE play 4.
2) Presume 'turn 0' (the turn before the start) had a 0 played.
I think that is the perfect formula for the game simplified.
This puzzle is based off of an old board game called Dr.Nim
Griffin Little Which was based off, funnily enough, THIS exact video! ... Somehow.
C. Smyth what?
also none of this has anything to do with the secret of Nimh
And this is why reading comments is so damn intresting
Why not park your raft over the AI so that when the water drains, you're on top of it? Or jumping out just as the AI sucks all the water out?
madcat789 Because that's not the point of the riddle
The AI will pull you to either side by changing which duct pulls out the water.
you don't have a paddle, and the water is electrified so you can't control where your raft should be
why not destroy the building?
Why not just throw the remote at the manual override once you reach a low enough water level to reach it, might be hard to throw it through water, and nim could make it flow a different way by lowering water levels, but whether you make it 0 or nim does there would be nothing but air stopping it from hitting the manual override. Alternatively, since he can only make it lower in turn, figure out where the override would be when you get close, throw the remote so it would land on it, since you haven't lowered the water level yet it would slowly float down onto the button.
"...Called NIM"
Me: rod.
I was not expecting that.
But I so wasn't expecting to expect something so it doesn't count.
Again with another puzzle that is simple logistics. I miss puzzles like the pirate one or the alien hat one. Where in order to win you have to be creative, not simply trial-and-error process
Virdelet this is dp bro!!!
This is not trial and error. As stated on the video, you should think backwards to put your opponent in a losing position no matter what it does. Therefore, you need as much logical thinking as in the pirate riddle (because of the same thinking backwards process).
Franderly Acosta nice one brother!!
That can be all well and good, but "creative" riddles can end up like the wizard tourney one, where the answer lies in something you have no idea you can do, and is so open-ended that you have no reason to solve it the way it's intended.
alien hat is the best
Okay, this riddle was actually very good :)
Fun Fact: NIM is a popular Mathematical game From the 1900's that involves players taking turns drawing a curtain number of objects from a pile of them. For example, one player takes 1 and the other player takes 2 and vice-versa and vice-versa. Whoever takes the last item wins the game. The main trick to winning is to go first if theirs an even number of items in the pile.
The chocolate squares one is a piece of cake compared to the main riddle of the video. The longer the series of moves the more mind numbing the task becomes and I didn't get far enough into the "losing floor/winning floor" strategy to recognize the pattern. However, with the chocolate squares you just take the top right and force them to let you corner them
34 freaking tabs open at the end, absolute madlad
And? I’ve got 79 tabs open right now, your point is?
NIM? more like DIM, am i right?
up top?
no one?
Yes you are right! Alright!?
Gawd!Uh! 🙄
My brain got fried. Had to watch over again to really assimilate the idea.
“The AI knows all move possible” - *Said TedEd while completely explaining how to defeat the AI easily*
All of a sudden, my memories of the Water Temple in Ocarina of time come flooding back to me.
POV: you’re reading the comments before you’ve finished the video
Isn't his head too big for his body?
it's animation tho, somehow people like that more.
Top 10 mysteries science can't answer
Eh I think it's just for comic purposes or something like that
who was series covers in a nutshell
YEAH
I beaten the bonus riddle, first, start with the top right piece, then two options open up, if your opponent takes the bottom two that aren’t poisonous, then you take the two remaining that aren’t poisonous. But what happens if your opponent just takes the bottom right piece? Then you take the top middle, then your opponent takes one of the two remaining pieces not poisoned, you take the last remaining not poisonous piece and win.
NIM obviously calculated every scenario and would have it set up so you couldn't go 1st.
Or just allow lowering 2 stories. That would let NIM win 100% of the time by just playing to multiples of 5.
Thanks your videos are really helpful for my english listening!!!😊
Imagine you are doing all these math.... while your opponent is just going and wins 🤣
Bonus riddle:
Warning, decently long comment
Eat the top right square
All outcomes:
Outcome 1 -
You
12
456
(Top right square)
Opponent
12
45
(Bottom right)
You
1
45
(Top middle)
Opponent
1
4
(Bottom middle)
You
4
(Top left)
Rip opponent
Outcome 2 -
You
12
456
(Top right)
Opponent
456
(Top left)
OR
12
4
(Bottom middle)
You
4
(Bottom middle)
OR
4
(Top left)
Outcome 3 -
You
12
456
(Top right)
Opponent
1
456
(Top middle)
You
1
45
(Bottom right)
Opponent
1
4
(Bottom middle)
OR
45
(Top left)
You
4
(Either Top left of Bottom middle)
Tell me if I missed anything
You are wrong . You need to start with 2 or 5 second step 2,3,5 or 6 and you win
12
456
You
1
4 6
Them
There's no rule against this and it results in a loss
@@acousticpark6881 But you still broke off piece 6, making it your piece. It is no longer a part of the chocolate bar, which is what you are breaking pieces off of. The no rule thing is a bad argument anyway because if you break that piece off and leave it saying there was no rule, I could just move it up next to the top left one, since it also wasn't explicitly stated that I couldn't. Then I just take both pieces since they now form a rectangle.
Cameron Crittenden Yeah that’s fair
i even confused how much/ how is the configuration for us to break the chocolate. like could we break L shape? could we break the center piece only?
It can also be done as the you need to always be at an odd position . by that logic your 1st move should be 4 so that you are always at an odd number . And when the AI plays 3 you can play 1 and vice versa
Not sure what you mean. After the first drop of 4 down to 21, a drop of 3 + 1 puts the level at 17, which is odd, but you don't want the AI to have 17 because then you'll lose.
There is a floor 0 so this doesn't work.
The threshholds of death are both odds and evens so that can't work. The second you are handed 7 9 14 16 or 21(which you can't be given if you play smart) you lose.
This riddle reminds me of a game called 11-up. You take turns to count 1, 2, or 3 higher to the number, starting at 0. If you say 11, you're out. It's basic but fun. You should play it.
I’ve played a similar game but you count to 21 instead
0:51 MISSION FAILED WE'LL GET EM NEXT TIME
I love how these are getting harder. I used to try to solve them but now I just wait for the answers because I’m curious and I know solving it myself would take a long time.
Bonus riddle solution: take the two rightmost pieces.
Then, whatever your opponent does, you can leave them with the poisonous piece:
Here’s an example using emojis:
Starting turn (the beginning bar)
🟫🟫🟫
⬜️🟫🟫
You take a turn like so:
🟫🟫. 🟫
⬜️🟫. 🟫
Opponent can do
🟫🟫
⬜️🟫
Or they can do
🟫. 🟫
⬜️. 🟫
Then you do
⬜️. 🟫
Or
🟫
⬜️
Respectively
🟫= safe chocolate
⬜️= poisonous chocolate
Worth being awake at 11 pm Philippine time
Edit: If you're wondering, I had school the next day so yes it's late for me
Nathan Tejada tru dat
Oo nga
Nathan Tejada kamusta :)
Nathan Tejada oo nga e
Ang aga aga pa ng 11
Did nowone else realise how creepy the guy looks in the animation
naw he just had an oversized head
Okay for the second riddle, you'll only want to take the first square, top right, first. A deadly position you don't want to be forced into is where there are three squares left in the L formation (top left, bottom left, bottom middle), because you can only take one square, then your opponent takes one, and you're left with the poisoned square. Any combo of two or more will allow your opponent to put you into that disadvantaged position or leave you with the last square entirely. (for instance, if you take the entire top row, the opponent could take the bottom right two squares and leave you with the poisoned one.) By taking the top piece, your opponent can't make that deadly L and their only choice is to either take one more square, where you can then force them into the loosing position, or they'll take more and you can remove whatever arm they had cut off.
Ted-Ed: explanation:
Me: NOOOOOO THIS IS TOOO COMPLICATED
Haha who remembers the game "Doctor Nim?" Bet this is based off of it. (In doctor nim the joke was you always lost since you had to go first every time, because of some logic shenanigans and stuff making it impossible for you to win, kind of like this)
Barack Obama
When I was a child my teacher explained a game, that was, according to her explanations, done by sheperds during transumance, to have a good way to spend time.
It requires only 18 little stones that must be placed in five columns. The first with 7, the second with 5, the third with 3, the fourth with 2 and the last with just one stone.
Any opponent can remove an arbitrary ammount of stones but just from one single columns. The one who pick up the last stone, will lose.
I'm commenting this right as I heard the whole riddle.
Isn't there a game called professor nim? I don't remember what it's called, but this is basically professor nim. In the game you can't win since you have to go first, so I'm assuming it's the same here.
Didn't even take me 30 seconds. I've basically mastered this type of riddle playing 21 dares with my friends
Lelouch Yagami Congrats your prize is in the mail
Don't want a prize for something so easy
WOOSH
Not really, and its actually woooosh
I like how this A.I is named after the phenomenom, called well you guessed it, The game of Nim