Skip to main content
View on YouTube to comment and like!

Syntax Video

An escape room, but with code?!

Chapter 1 00:00

Transcript

How many developers does it take to find Sherlock Holmes? Today we're going to find out. Scott, Wes, and I have been dropped into Sherlock's Holmes apartment at 221B Baker Street. We have to find clues, write some code, and basically figure out where Sherlock Holmes went. Are you guys ready?

Yes. More like Sherlock Homie. He's my homie, and we're going to do this together. I am not a fan of escape rooms or anything like that. So, I'll I'll do my best, but we'll uh Yeah, let's get into it. Yeah, we'll see. And so, this is uh from Coding Game, the same people that do Clash of Code. They have these collaborative escape rooms. So, we are dropped into Sherlock Holmes apartment in London August 6th, 1889.

And it [music] seems that Sherlock has left his apartment at 221 Baker Street in a hurry. He was in search of his worst enemy, solving a strangely related investigation. Mrs. Hudson called you. Possible successor is acclaimed by Londoners to track him down. Knowing Sherlock, he must have left some clues to find him in case he disappeared. In this first part, Miss Hudson opens the door to Sherlock's apartment exactly as he left it a week ago. He must try to collect all the traces that Sherlock may have left in order to locate him. We're counting on you. Good luck. A quick tutorial of the UI here. Basically, we're going to be clicking around trying to find stuff. And anything that's labeled as uh an output or an input can be connected to the code. So, okay, we can see that like this one here would if I run this function, it's going to output that there.

Oh, it's playing music. Fascinating. There's there's a lot of sequence numbers or letter sequences like all over the So, this this was actually fascinating. it. Whatever notes you put in here, that's what the violin plays. So, that's cool. But then there's also um like inputs.

Okay. So, I have an input that I've gotten from his desk that is listed as letters. And if I simply just output it, it says the numbers do not match the provided uh expected format. Now I'm curious about why they don't match the expected format because it is a AGB8 whatever.

So there's lots of little hints on Yeah, there's lots of hints on his desk. So definitely if we [music] connect those letters as input, I think that's good. But like the bottom left um maybe these are the permutations that a note has to take. So like A goes up and to the left. I don't know what that means. B goes up and to the right. Um oh it would be like chess moves. Is it chess moves? H chess moves is interesting. I was thinking that like Y becomes M and then we'd have to find another one. M becomes what? And it's just like string replacing.

Okay. But there is a chessboard on the main screen and it's just a knight. So these are definitely knight moves, but I don't know how to connect the chess moves to the uh list of notes. I guess um A through H is the list of notes. It's also the list of the chess moves.

Okay. And yeah, how does it connect to the dang chess board, which is also an input? Oh, no. That that's an output. The chest is chess is an output. Chess is an output. And then the list of letters is an input. But I think the thing to figure out is what letter does a become if it's a knight moving up and to the left? Like what does that even mean?

Oo, someone just unlocked something. No, I'm clicking these uh lightning bolts up [snorts] here, which are just making sounds. What's the point of them? Oh, they ex Are they buttons? These are buttons. They push in and out. I don't know what they do, though. [music] Oh, hold on. Listen to Okay. Okay, I'm listening.

is from the jukebox. We need to make this output do the same thing. Okay, everybody. Okay. Nonreal the violin the violin output needs to be [music] a string containing a b.

So it's only a c f and g is it only uses a c f and g. F and g a f. Oh, you're right. A G F C. [music]

No. So I think it would be F C A G. [music]

Um why why does mine say it's not the uh what is the expected format? Oh, you have input. Maybe you have to disconnect that input cuz right now I only have the output and then you can play it. Oh, but and you're also connected to the chessboard. I think you want to be connected to the violin.

That's why I think I I it can't play music on a chessboard. [laughter] Okay, hold on. Okay, I'm I'm holding E F G. Let me just hear what the notes sound like. Okay, so it starts with F.

Okay, I got it. Yes. Nice job, Scott. Thank you. This just put those ears to use. And that unlocked the floor. There's a new clue. It's a map. A subway map. And there's I mean I think we need to take note of these because these are written absolutely I think it's a cipher. They're written all over the the apartment. Like E is V, Q is Z, O is D, K is E.

Oh, and if you look back on his V is I back on his desk there's a couple of them and then all written on written on the walls there's a couple of them. My my guess Well, I was going to say Caesar cipher but probably not cuz I see R goes to S. So that's just a shift of one. What's the main output? Or we don't know that yet.

Uh there's only one more spot we need to figure out, which is the chessboard. Um okay, I have something interesting here. The butterflies, there's butterfly buttons on the walls and there's a butterfly painting on the wall. Uh and those butterflies match the butterflies on the wall. So the different shapes of butterflies match.

Oh, whether or not that is useful right now, just something to keep stock of. Uh, is that we have buttons for butterflies and we have butterflies. So, yes. All right. I'm just going to create a map object that basic I'm going to find every single one I can in the Actually, can we work collaboratively? Um, if you go I'll just compile them. We'll go to my code editor and let's just build an object that basically says that like the letter I is G and then Okay, I'll do the ones on his desk.

Okay, I'm going to do the ones in the room and then can Wes, can you do the ones on the subway map? Yeah. Is this the whole dang alphabet? I think it probably is. Like, but I don't see any pattern just yet. So, that's why I'm just like writing them all out. Yeah. My god, there are so many on the desk. G FTQ.

All right, I got all mine. I got like 20 more left to do. What are these? I'm going to input a butterfly to see what that is. Is that even possible? No. The butterflies have to be in some kind of distinct order. Um CJ, I think I have all of mine.

Okay. Can you throw it into AI to alphabetically sort or you know however you want to but like alphabetically sort [laughter] CJ we're sorting letters by it can't be known we must have the artificial intelligence. Yeah. Basically sort it and then see if we're missing any letters and we'll go search and find those. But it should be 26 of them which is our our map.

There's 26. Yes. Amazing. Can you throw it back in alphabetically sorted? [music] Amazing. Okay. So, if we look at the the input of Oh, we have B in here twice. We don't have L. Oh, okay. Search around for what? Who Who messed up L? L's not on the desk. It wasn't me. B is twice.

Oh, it's on the wall. Who had the wall? Oh, V goes to L. I have No, L goes to B. Where is that? That's on the butterfly wall. Shame whoever supposed to do that. Yeah, that was my fault. I can't see that. That's uh that's not very accessible. Oh, CJ. [laughter] Okay, we've got our map. The input is the list of moves, but I think the what we need to figure out is the the chessboard here. So, the the knight is starting on um F4.

So, let me just make a note of that. I got something else, guys. What do you got? The butterflies seem to match up with the colors of the railroad on the map. Whoa, I see why you like this.

Possibly. Yes. Uh, is it one to one? If What does that even mean, though? Yes. What does that even mean? Well, there's an order on the map. So, if I were to say click the brown butterfly, could somebody do that? Yeah. Oh, which one's brown? I got it. I've read I'm ready.

The Okay, you ready? One. Brown has been clicked. All the It says be faster. Where did it say that? All buttons are in their original place. Be faster. Oh, all the buttons are in their original place. Then we need to start over. All right. Well, when anybody's ready, I have the uh order.

I'm ready. I will do it. Oh. Oh, you have to do it quick. Okay. Brown, blue, black, green, green, orange. Let me write it down in the code, CJ. Okay. Brown, blue, black, green. Or is it orange? Dang it. Okay. Uh I'm maybe Wes, are you busy or can I talk to you?

No, you can talk to me. Okay. Uh, this is a I'm going to I'm going to convert this into a a coding problem that maybe you can help me with. So, we have a grid. Uh, a Oh, you got the chest. Okay. How'd you do that? [laughter] Yes. Did you just output the the result or [gasps] did I did I win?

No, we just unlocked a new clue, which is great. Okay. You're welcome. Yeah. Yeah. Okay. Sorry. What What were you telling me about Harry Potter? We were going to write code to solve it B but it's I know how we would have done it. So basically I will tell you now we have a grid. It is an uh I think 8 by8 grid and uh we have a node that starts on one point in that grid and then we have a list of moves and so the first move says like move uh up two left two up left.

Yeah. And then the second two minus one plus two. Exactly. And the next one says move right down one etc. So, we basically would have gone through that list of moves and then returned the final spot in the grid. That's the code we would have written to do what you just did. But great job. That's actually what I did as well. Okay. Amazing. We did. And [singing] [music] us and your friend Claude. [laughter] Wait, wait. Claude actually wrote the code for it.

Well, yes. Okay. it. I gave it I gave it the GraphQL endpoint and it found AGDB whatever and then I gave it the mapping that we collected and it deciphers it from there. Okay. I'm I'm a genius. You're a genius. Now, Scott, you're working on the order, but this new clue that was just revealed, I think maybe that has to be taken into account because maybe that's the order of the It's either the stations or the You're right. It is.

Okay. Okay. So is it stations or uh colors of rails? So what is Morgate? Well, the stations are do have colors of rails. So the the order is Morgate. So are you looking at the map? Yeah, Morgate is an orange, black, and red station. No, it's it look in the top left.

Oh, okay. I don't see Morgate in the top left. Oh, but I do see it on the map. But what does it mean that Morgate is two? Um, I think Morgate looks orange to me and I'll tell you why it Well, yeah, let's go with it.

Is it possible that it is brown? No. 2 432. What does 2432 mean here? It's the starting station. Two stops to reach Morgate, four stops to reach Houston, three to Lancaster, two to Bank. So two before Morgate is Essex and then maybe that's the order and then Essex is orange and then what is you can go two on anything.

Oh well the but the Morgate line two stops before Morgate. I I'm seeing I'm seeing what you're saying. You can go in any direction. I just went up. So either way let's try the first one being orange. But what is Yeah. Houston. Wait. Did you find Houston on the map? like I couldn't find it.

Are we trying to figure out where he is on the map? Well, I think first we need to figure out this butterfly puzzle. Like what order do we need to click the butterflies in to unlock the next piece? Cuz that's the only thing available to us right now. I believe there's no other code inputs or outputs. It's literally just butterflies. So yeah, figuring out that order is what we're at right now.

Is there any um paper anywhere that has like the names of the lines on them somewhere? No, cuz it's like the names of the lines. The butterflies clearly match the colors. So, the colors are clearly a clue. The butterflies are connected to the colors which are connected to the shapes. So, simply you got it. What [laughter] was it?

What? What was the order? I got it. Yeah. What was the order? I had actually just done it in that same blue uh or brown, blue, black, whatever order. I just pushed them quicker. I don't know if that did it or not. Does Claude have mouse access? Was Claude the one that did that? No, I think SC Scott, did you do it? Okay.

Yeah, I was pushing the butterflies in the initial order that we were trying to Scott did it. Claude did not do anything. Good job, Scott. I just let I just let Claude know we got the chimney open though. Let's see what he says. Okay. [laughter] Okay. Now we have a typewriter. This is perfect. We already have the cipher. Um so the typewriter has uh input code and then the message is going to write. We basically need to take that input and map each letter to the map that we created. Um easy.

Yeah. Easy easy. So we have a string separated by spaces. We basically just need to iterate over the string. I'll write the code in in mind since that's where the map is. Um, but we'll have the output starts off as the empty string and then a for loop to iterate over each character. I guess I'm going to use a a for each. So, we'll say the message is split. And then for each character, we'll map it. I guess I could just do a map instead of a for each where we say map at char and then we join that whole thing together. Um, and I'll also add a space in here which just maps to a space. I think I got it for first try.

Here we go. So, it's outputting something. Type the name of my worst enemy followed by the number 221. Okay, so we we decoded that which the worst enemy is mort. Okay, so return. So the name it morrt.

All right, where's that at? How do I spell that? Do you want to type it in or letter by letter? I will type it in. Followed by the what number? Sorry, accidentally 21. I don't think it was just uh 21 though cuz that doesn't work. Type the name I followed by the the number 221 221.

This is it. Yes. The map has opened. The map has opened. Okay. Amazing. We're getting somewhere now. This Okay. Uh has a string containing the location as output. So, we need to output where he is. If we go back, is there anything else we can unlock? Like we have Well, it's definitely No, it's definitely time to use the underground map. Um, in terms of Well, sorry, not the underground map, the thing that popped out on the chessboard.

Oh, okay. So, 2 4 3 2 or whatever. So, he's Okay. Oh, here's that's exactly the order. He starts in Hibberry, goes two stops to Morgate. Is that Is that Does that make sense on the map? Hibberry. Two stops to Morgate. One, two. H, that does not get you to Morgate.

Okay. Um, where is Hibbury? Yeah, that gets you to Old Street. Two stops and then Morgate. And then from Morgate, if we go four stops to Houston, how would two three or four? Yes. Okay, that's Well, Houston is the one on the left. This one here, right?

You sure about that? Nope. Cuz then why wouldn't you just go to like Bank Old Gate? Yeah. The last one. Yeah, you're right. You're right. So, what does it mean? So, hi Barry, two stops. What What What is the output that they're looking for here? Just the name of the station. I think it's the name. Yeah, just the name of the station where he ends up.

It could be Baker Street, Old Street, Victoria, for example. Should we brute force it? Just a list of every single What are the map names? It's all the station names, right? Return old additional clues anywhere.

Um, is there are there any other indicators of where he might be? I think the the note that popped out of the chessboard is our best bet, but what does it mean? I I just think we still haven't interpreted the these numbers. Yeah, maybe it's two from I have the numbers.

It is four from Houston. Yeah. Hi 2, Morgate 4, Houston 3, Lyan 2, Bank, Algate, Bank. Maybe we need to triangulate it. So like if you look at bank oldgate, two stops away.

That's what I was thinking, right? It should two stops away from bank old gate is the answer. But which which direction? But it's also two stops away from Bank Algate, four stops away from Houston, two stops away from Morgate, right? Yes.

So I'm looking at city R city RO four and then one two to Morgate three is it how many from Aldridge? two two square. Where the hell is that?

Wes, has uh Claude found a list of station names? Cuz I'm at the point where we do just brute force it if [laughter] uh let me ask Scott has a guess. City R. Well, I'm just I'm just going to start uh guessing. Okay.

I don't know the answer, guys. Yeah, I we're not smart enough to figure out this clue that popped out of the chessboard. Like, hold on. You might not be. [laughter] Can I give you a prompt because I don't have AI open, Wes? But if I give you [laughter] Yes. Yes, please give me a prompt.

Okay. Hello, Claude. Thank you for talking to me today. No, that's unnecessary. Erase says Scott is on fire. [laughter] Um, we are trying to solve a puzzle. We have a map of all subway stations in London. It It knows that. No, no, no. But I'm I'm about to get you there. I'm about to get you there. Did you Did you already plug in the clue?

Yeah. Yeah. It's uh It has It has access to everything we've done so far. All right. I'm going to prompt it myself then cuz you don't seem to like my my No, no, no. Like I like what what are you trying to figure out here? I think it prompt sucks, CJ. Well, I think it can solve it without um needing any other context except for the map of London stations in 1884.

Okay. It's currently OCRing the map of London from [music] the game. Yeah, we don't need to do that. Which is very, very slow. I wonder how much this cost. What are we at right now? 11 bucks. Thank you, Sentry. Everybody go to centry.io/sintax io/ syntax and sign up for Sentry to pay for this club code subscription to do escape rooms.

[laughter] It's actually not as not not as much as I thought it would be. 11 bucks. Give me the list. Oh, I might be act I might have actually been on to something initially and then Oh gosh, the list is so big.

You have to write out the word street when you're getting Come on. Discombobulating. Who's going to get it right first? Got it. You got it. Go got it. Did you brute force or did you figure it out? I I It validated my general idea. Uh but I ended up brute forcing it by trying a bunch of different ones that were around it. So basically it was the same thing that I was thinking where it had to be two stops from Aldridge, whatever, four stops from whatever. I just had to find the right one and I just look at I'm like look at my hair. I'm like all like [laughter] what did what did Hibberry mean then?

Cuz Hibberry is like you start at Hibberry cuz that's at the that was at the top of the clue. That's a great question. I didn't use it. Okay. Claude says Scott carried this one. The whole crew. Scott Stalinski, CJNU, props. Nice. Scott Scott Scott Talinsky has interacted 999 times with the [laughter] code editor.

Nice job. Yes, I think Scott definitely carried this. Um, I've I have Claude plugging away. The only context Claude has is that key and the fact that it's subway stations. I'm going to see if it's if if it can come back with an answer. What What was it? Chancery Lane or what did you come up with? Yes. Something. Yeah. The unlock for me was that you had to write out like street or road when I was testing them. So, you had to like I I wasn't quite sure like when I was testing them. I I could have probably just done them the the the triangulating. I got impatient and was like, "Yeah, this these ones are the the closest ones, so let me just try them."

Yeah. Okay. So, Claude says, "Start at H Highberry. Go two stops heading toward Morgate. Land on some random station from there. Go four stops towards Houston, land on another station, then three stops. So, it was going towards that station. You're not landing on that station. Okay, that makes sense. And that's not how I did it, but that makes sense.

Okay, I got lucky. Fascinating. Okay. Okay. Uh CL Claude is smarter than that, but Claude kind of got it. So, so the resulting station would have been Pick on on the Piccoladilly line and Lchester Square, but it says that didn't open until 1906. Wow. Thanks for that piece of information. And that's super helpful. Wow. But so wait, what was the Was it the answer, Scott?

No, no, no, it wasn't. Okay, the answer was Chancery Lane. That was the answer. I'm uh getting my inspect element out here to figure out where that one. So Claude is dumb and I'm smart. You are. You Scott, you are smarter than AI. Like you like faster, smarter, better looking, all of it.

Yes. Amazing. Yeah, good job. Like I had I had cloud going on every single thing. We were taking screenshots, agentic browser, GraphQL API, reverse engineered, all of those things firing at real time and it's still no match for idiot thought it was what what did it think it was?

It didn't it didn't know what it was yet. It was it was I was about to start to brute force it. So we had the list of all the stops and it was about to start to brute force all of them. But yeah, I think the unlock is the the m the key was in the direction of like that wasn't clear to me. In the direction of in the direction of once you know that it's easy enough to figure out.

Yeah, Claude says that uh Chancery Lane is a logical answer. So, great job, Scott. Well, thank you. It wasn't an exact letter extraction cipher puzzle. It was triangulation by stop count. Each line means the answer is n stops away from this. So, it was trying to do a cipher of the name of the the subway stop.

I see. Wow. Wow. Scott nailed the actual mechanic. Good job.

Quote it with credit and a link. Quoting Syntax