Placeholder Image

字幕表 動画を再生する

  • All right.

  • Hello, world.

  • This is CS 50 Live.

  • My name is I'm still in the habit of saying this is CS 50 on Twitch.

  • My name is Colton Ogden, in case anybody is brand new to this sort of ecosystem.

  • See, City is Harvard's sort of introductory computer science course, and we now have a presence on Twitter and YouTube and Facebook doing a live stream where we do from scratch implementations of projects we cover.

  • Well, yesterday we covered Callie Lennox, which was sort of a completely different single together where we kind of go into hacking and cyber security.

  • But today we're going to go more into the former category of projects.

  • Actually, today is very experimental.

  • Today, stream is focused around a text adventure in python.

  • Normally, I code in lieu and love to d making games, and this is a game.

  • But we're gonna do it in Python because I think more people are actually familiar with Python.

  • More people might be interested in python.

  • It's nice, easy way to do.

  • Ah, command line focused version of a game, especially for folks that are sort of Newark to programming and to python more generally speaking, on.

  • I want to shout out as Lee Tea is in the chat today for actually bringing this idea sort of to my attention.

  • In the past, she and I talked about a text adventure it she was sort of working on and creating.

  • And I think she actually has a text adventure that she created herself.

  • And she may be plugging that in the chat at some point.

  • So stay tuned for that.

  • Today's stream is very experimental in that we're actually gonna do everything based on what the chat has to say.

  • So this text adventure I'm not going to write any of this on.

  • And I'm hoping that the folks in the chat are participatory enough so that we have a corpus of potential avenues to explore today during the stream.

  • But we're going to essentially make sort of what you might have seen in a choose your own adventure style game, Um, or even the old books.

  • The choose your own adventure book.

  • I'm gonna pull up.

  • I'm gonna switch to my screen here, and I'm gonna pull up a Google image.

  • Time to see if they have the choose your own adventure book.

  • Sort of pictures?

  • Yeah, these sort of like seventies eighties Isaac Asimov style.

  • Um, like, stylized books.

  • These were cool because you would read these And you can actually say, you know, if you wantto perform this action, go to page like 87.

  • And it was kind of like this.

  • What?

  • The word is off hand, but not asynchronous.

  • But it was sort of not sequential nonlinear, that that's the word I was looking for.

  • It was non linear way of reading a book and actually sort of diving into the narrative and having an effect on how it transpired ultimately is very interesting.

  • I used to read these as a kid, and I think these are kind of the actually sure if these came before the first sort of text adventures like, was it cold?

  • Sore HQ?

  • Is that the name of the, um, the game?

  • Siri's?

  • Yeah.

  • So Zork is another really famous game.

  • Siri's and I actually think I own these games, but I haven't played them.

  • I have been astounding number of games that haven't played, but these are text adventure games that you play at your command line or whatever, and I think some of them had a graphical interface and you would choose sort of how you want to actually play out the game.

  • And if you made the right choices, you would eventually win and beat the game.

  • And if you made a wrong choice, um, you would probably die in some gruesome faction.

  • Actually, Bandersnatch came out fairly recently on Netflix, and this was a, um, black Mirror episode That was a very similar style.

  • So choose your own adventure piece of fiction on Lee.

  • This was implemented in a brand new format sort of through Netflix through streaming video where using, You know, if you're using an Apple TV or using your TV, your smart TV's remote, you could actually navigate through Netflix the different options in the narrative to change the flow of the story and this, like choose your own adventure games and, like choose your own adventure books had sort of the effect of potentially leading you down gruesome and sort of savory paths.

  • But this is cool.

  • This is gonna be an interesting I think way for us to take this format and actually apply it to, I guess, twitch and make it a community driven thing.

  • So We'll see how it works out, Woman As Lee plugged her thing, they're in the chat.

  • And no, Eliza, is this being recorded?

  • Yes, it is being recorded.

  • This will be on YouTube after the fact.

  • Of course, if you're watching this on YouTube, you will not have taken part in the creation of this.

  • And if you're watching this on Facebook or on YouTube, I would recommend going to twitched, at least for today's episode, because the Leighton see on Twitch is less than Facebook and YouTube and I will ideally like to be able to read people's responses so that we can keep the flow going.

  • So definitely tune on a twitch.

  • Twitch dot tv slash CS 50 TV If you wantto suggest options for today's chat Eastland and has some suggestions that I'm probably not going thio plugin because I do not know what that means, Mrs.

  • Google.

  • Something to show good pictures, very good interactive fiction and Russian.

  • I'm gonna have to take your word on that East London That sounds like it could be a slippery slope and is missing again.

  • How long will it be?

  • This would be about three hours.

  • Usually my streams are about three hours long.

  • We may cut it a little bit shorter, Mom, it likes Whip, Streak said.

  • 90 minutes is kind of the lower bound, three hours being the upper bound, but we'll see how we'll see how things go.

  • And I have actually no sort of preconceptions as to how the stream should go.

  • Other that, other than that it will be a interactive text adventure in Python and that you guys will be sort of leading the way.

  • So I have ah, visual studio code project already up and running.

  • It's just called text adventure in my Streams folder.

  • I'm gonna create a A, um, file called main dot pie.

  • And this will probably honestly be all that we need for today because we're not going to super crazily engineer project.

  • It's just gonna be basically one file with a bunch of like, textural options.

  • We'll have some conditional logic, and they're depending on how fancy we get with it.

  • Depending on how people what people want to do, we might end up tweaking things a little bit, but we'll see how things go.

  • It's OK main dot pie, and then python extension is recommended for this file type it is.

  • Okay, I will disable that for now.

  • And I'm just going to say if name is equal to Maine, and then we'll just say made Let's have a function called Main Death Maine, whose goal in life is to print Hello, Twitch or both.

  • Hello.

  • See, City lights were not streaming exclusively to twitch.

  • Where were streaming to a bunch of service is and I'm gonna open up my command.

  • Prompt.

  • I'm gonna actually wearing my right now.

  • I'm in my home directory.

  • I'm gonna go into Dev Streams and then text adventure.

  • Think.

  • And then if I go Python three Main dupuy, this will indeed output.

  • Hello, CS 50.

  • Life's not a terribly interesting adventure so far, but I think the first thing that we should do is we should decide on the title of the game.

  • I think this will be a nice a way for us to get some inspiration.

  • And so I'm gonna choose people in the chat to give me one word at a time.

  • This will be interesting, uh, sort of like that.

  • Choose a sentence in pieces, were in a start with choose the title in pieces.

  • So since, as Lee is the sort of star of the show today because she recommended what we do as Lee.

  • I want you to recommend the first word of the title of this text adventure, and hopefully there's not enough light and see it where this gets to be a little bit sluggish, But we'll see.

  • And then oh, Indra Ready?

  • Good to see you as he's saying, Um, it's a lot of pressure, A lot of pressure.

  • Aliens.

  • Okay, aliens, Aliens is the title of this text adventure.

  • So I'm gonna create a constant up here.

  • And the first word is aliens.

  • Okay, second word.

  • Whip streak.

  • Nate, Let's was the second word of the title.

  • I have honestly no idea where this is going to go.

  • Let's also keep it PG preferably, um so we will not be accepting profanity as part of the stream.

  • Um, but, you know, I'm excited.

  • I'm anxious to see where this leads us, because this could be very fascinating, and it'll probably very nonsensical ultimately the adventure.

  • But that's just kind of part of the fun.

  • Ah, uh, Mirani says, Well, that's cool.

  • Aliens.

  • Nice Alejo Goma injury.

  • The injury is not your turn yet, but you're you're coming soon.

  • And his music again.

  • I'm gonna keep track of all the folks that are in the chat.

  • And I will ask all of you eventually to contribute to this.

  • But just so that there's not a bombardment of, ah, things at once and so I don't have to make choices.

  • I'm gonna have to I'm gonna have to narrow it.

  • Intergalactic adventure.

  • Okay, aliens.

  • Intergalactic adventure.

  • Okay, so that's two words, though.

  • Nate, to be fair, that's two words we're gonna have to stick to.

  • Just one word.

  • So I need youto I need you to sort of focus down.

  • What's one word that you want to use?

  • Could be intergalactic pyros, 2002 aliens and pogo sticks.

  • Misspelling good.

  • Is that the word is Miss spelling the word?

  • That's an interesting word.

  • No trends or says you're new here.

  • Nice to meet you all.

  • Hello.

  • No trends there.

  • Good to see you.

  • Um, Babbitt.

  • Welcome to the stream.

  • We're doing a text adventure live, and everybody is contributing to the text adventure.

  • So currently it's on Nate to decide what the second word of the title is.

  • So with streaks and Nate.

  • What's that?

  • What's word, too?

  • What's the word?

  • Following aliens here in our title.

  • Intergalactic.

  • Okay, perfect.

  • Intergalactic.

  • And then, um Inger?

  • Ready.

  • I want you to give me the third word of this title.

  • And maybe that maybe that will be enough.

  • Maybe this is the end of the title.

  • Aliens.

  • Endgame don't turn yellow.

  • And Babbitt, you're you're You're coming soon.

  • Don't worry.

  • Since you're such a regular, we're gonna get you involved in this ASAP.

  • But everybody's gonna everybody in the chat.

  • I'm gonna try to get everybody involved.

  • Just make sure that you if you're in the chat and you haven't said anything yet.

  • Say something.

  • So I know that you're actually presence.

  • I can call on you.

  • Um, but Inger Ready?

  • We're waiting on writing on Indra for the third word of our title.

  • We'll see how this goes.

  • Marvel aliens, Intergalactic marvel.

  • Okay, that's interesting.

  • Let's Well, that would be the title.

  • That'll be the title of our of our of our text adventure.

  • So of course, what we need to do in Maine is we need a print, our title, right?

  • And so if your brand new the python, I'll try and explain no trends or my name is Michael.

  • Mike.

  • Good to see you.

  • If a branded a python will try to kind of keep it slow.

  • So this is a function main basically lets us say Do something.

  • When I call this function here when I say main parentheses, that means actually execute main actually do what's inside of it.

  • I had to find a function called Maine, and inside of that I'm just saying Print, title and title.

  • All we've said is at the very top is a string.

  • That's what these apostrophe sort of designates some text.

  • And just as aliens, intergalactic marvel, right?

  • So that's that's always done.

  • So far.

  • We're literally just printing a string that says aliens, intergalactic marble.

  • So if I go back here and I print that, then we get printed to the screen aliens, intergalactic marble, Variety says.

  • I used to be regular, but the schedule is so uncomfortable for Mayfield's badman.

  • Yeah, I'm sorry if if it's a little bit later in the day, or maybe it's during a work period and radium.

  • Too bad at choosing words.

  • That's okay.

  • That's okay.

  • And his visit again.

  • Um, so of course we have the title we're gonna need, like, a little short introduction.

  • Eso Let's let's maybe have ah, like a few sentences.

  • An introduction.

  • So the first sentence.

  • Babic, I want you to give us the first sentence of this text adventure eso.

  • We'll have this sort of be introduction intro, local intro, and, uh, we're gonna make it a triple triple quoted string.

  • And what this lets us do is it's actually lets us format the string.

  • However, we want to, um, including new lines.

  • So this is kind of a nice feature of python.

  • So, Babic, we're waiting on you for the give us the first sentence of the introduction.

  • I wanted to be as epic as possible, and then we're gonna call on someone else for the second sentence.

  • But all wait to until we get the first time this from Babbitt before we decide to do that.

  • Um, so so far it seems like this is going in the realm of sci fi, a little bit kind of epic sci fi.

  • So I'm not entirely sure these earthlings are not using their full potential Lovett.

  • These earthly are not using their full potential.

  • Veron e i want you to give us the second sentence.

  • Can you do it for me?

  • Veron e second sentence number two in our intro here, These earthlings are not using their full potential of it.

  • Love it as the first.

  • That's a great first sentence.

  • Ah, wait.

  • Past minute says Veronica.

  • Oof!

  • I'm sorry.

  • You know we're trying to do is we're actually trying to bring the stream back to an earlier schedule.

  • That's why today we're actually streaming at noon eastern time because normally we stream at one eastern time And that's typically too late for a lot of people.

  • But 12 is a little bit earlier, so hopefully we can accommodate some folks.

  • Shin Wyn Chung says hello, everyone.

  • Hello, Shin went good to see you.

  • Can I do this through Spider and is missing?

  • And I'm not sure what Spider is.

  • I apologize, um, and and is missing again.

  • I'm gonna call you soon because you've been you've been active in the chat.

  • Um, I've just started to see if it be glad I've caught this.

  • How long do you normally stream forces beer hunter?

  • Um, we usually scream for about an hour and 1/2 to 3 hours.

  • So we'll see how long today's goes.

  • It's gonna be It's gonna be interesting.

  • We're gonna We're gonna see how I haven't honestly no idea what to expect today.

  • Oh, Anaconda.

  • Okay.

  • Probably unnecessary.

  • Honestly, to use an i d.

  • For today.

  • This is more of like a back and forth with the chat, and we're just gonna be using V s coat.

  • You probably owe if you're talking about on your own.

  • Yeah, you could use.

  • I'm sure you could use Spider for almost anything.

  • Python related.

  • All we're doing today is just strings.

  • Basically strings conditional logic we might get into inventory.

  • Depends on how complicated the text of inter gets and how much we get done in three hours.

  • Um, but yeah, that's essentially what we're going for.

  • And so I asked, I think I asked Veronica.

  • So, Veron e, we're waiting on you for the for the second sentence of the of the intro here.

  • So let's, uh if you're if you're listening in, we need you.

  • We need you cereal CS.

  • Glad you're back.

  • Oh, Siro.

  • Good to see you.

  • It's been a while.

  • Um, um I honestly don't associate Anaconda with much more than like, met plot, living like psychic learned stuff like machine learning stuff.

  • But then again, I don't do a ton of that in Python, Doctor, about Vinick, We do any more jazz intro sessions?

  • Probably Probably.

  • What I want to do personally is get more into react projects and build up something like react projects on stream from scratch.

  • I think that would be interesting.

  • They're eating peanut butter, but it is the most precious resource in the universe since it allows for intergalactic travel.

  • Okay, Okay.

  • They are eating peanut butter, but it is the most I love how peach I love just how pg this explicitly is today.

  • It is the most precious resource in the universe.

  • Um, since it allows for intergalactic travel and then we're gonna get one more, we're gonna hit one more sentence, maybe two more sentences.

  • So the next person I want to ask is and is missing in.

  • Can I get you?

  • Since you've been proactive in the chat today, can I get you to give me the third sentence for this intro?

  • Um, doctor about gonna get me too.

  • I think javascript stuff and react stuff would be a lot um, Ronnie, I appreciate I think the absurdity is fantastic.

  • Let's keep the absurdity going so that we can I think that's ultimately the point of this experiment is just see how crazy we can get a Sandman says cool stuff, Exile.

  • Oh, I'm here to contribute.

  • Perfect.

  • I will call on you.

  • Exile.

  • Oh, um, very shortly.

  • I want to thank all of the all of the folks that have followed.

  • Actually, in the last few minutes.

  • Here we have zero.

  • Cool.

  • And his visit again.

  • Power hit.

  • 666 Exile.

  • Oh, Alfred.

  • Mont Bank.

  • Ashish Gupta and bonking elephant.

  • Thank you all very much for the follows.

  • I appreciate it.

  • And his missing him.

  • Can someone else give me a sentence?

  • I'm looking for my charger.

  • We'll call call back on you and is busy in exile.

  • Oh, since you said you're here to contribute, let's get you to get 1/3 sentence here in the chat In the in the intro here.

  • I like how you can keep up with various conversations at the same time.

  • We got to keep we got to keep the flow going, you know?

  • And I'm actually super stoked that like so many people are here chatting and making this making this a thing.

  • Because if this was like one person, I think you would get a little bit dry or at least if not dry, very consistent, because you would have a consistent narrative so one person wouldn't be bad.

  • But I think having a lot of people lets us bring a variety to the table here and make things interesting.

  • So ex Niall Oh, we're gonna get exile.

  • Oh, for the third sentence for in show.

  • And then we can start talking about actually creating the text adventure, getting logic, giving some elixir If then if statements in here, uh, folks are branded a python, this will be may be interesting or educational.

  • Folks already know python.

  • This might be a little bit simplistic, but you know, the goal is more to have fun today and do a little bit of python, not Maur Thio.

  • Not as much to be super crazy with the engineering side of things.

  • Friends has got late and see fixed 30 seconds of delay.

  • That's terrible.

  • I would I that would be rough for today stream, especially if we call on you.

  • So now I know if I call on you and then there's a lot of late and say at least I know what's going on.

  • I know you're not ignoring me.

  • If our races to survive, we must obtain as much of it as possible.

  • So So what we're saying, then, is that this, uh, this whole thing is from the perspective of the aliens, which is interesting.

  • Okay, okay, we can do that.

  • So if our race is to survive, we must obtain as much of it as possible.

  • Que the text adventure.

  • So this is a villainous text adventure game.

  • So this isn't from the perspective of humans.

  • This is from the perspective of the aliens.

  • I'm curious how we're gonna actually get all that peanut butter.

  • Um, so the next thing that I want to do after I printed the title, then I want to probably print the intro.

  • So once I do that, we can see that aliens.

  • Intergalactic marble.

  • These earthlings are not using their full potential, their eating peanut butter, but is the most precious resource in the universe since it allows for intergalactic travel.

  • If our race is to survive, we must obtain as much of it as possible.

  • So this is the part where we decide how we actually begin the text adventure.

  • So usually in text adventures, it's presented in second person.

  • It's It's, um it'll usually present you a dialogue.

  • Like your name is Bob LA.

  • You are something.

  • You are somewhere doing something.

  • What would you like to do or give you some options?

  • You know, you have You have several options in front of you.

  • What do you choose to D'oh.

  • Right.

  • Um So why don't we get a prompt like that?

  • A second person prompt for our text adventure.

  • I feel like that would make things a little bit more.

  • Um, I guess orthodox in this context, Um, she's got a lease.

  • Ask their own alien Sparky to beam them down to Earth and fix this issue.

  • Humans reject owe their own human spot.

  • Right.

  • I got you.

  • I got you.

  • This is my first class is tomorrow for doozy.

  • Yeah.

  • This is gonna be an interesting first class for you.

  • Some deep dream story says the sandwich.

  • Actually, this does kind of feel like a deep dreams Deep dream story.

  • We should choose a name for the alien all right way should probably Yeah, let's choose a name for the alien.

  • And this is something that day nine likes to do a lot.

  • Um, Day nine is a youtuber in a streamer that will do something similar to this when he chooses names for his sort of characters that he plays.

  • So we're gonna create a variable called Hero and one letter at a time when you get one letter at a time from people, I'm gonna call on you one at a time, since so folly on his brand new to the chat.

  • So follow you.

  • And I want to give me the first letter of the, uh, the hero first letter of the hero's name.

  • And let's consider that this is gonna be in aliens name, and that probably doesn't matter.

  • This will probably be a crazy name either way, but we'll get self falling.

  • Who's just now in the chat to give us the first letter of the name?

  • I don't know if this is too advanced for this start, but why don't we have user input to allow for a more personalized story?

  • We could do that.

  • We could say, um, you know, in But what is your name?

  • We're going to do a more personalized story in the sense that we're going to start choosing options in a little bit.

  • But we have to sort of set the stage for the story before we do that.

  • Um, and I think it's more interesting also for the chat to choose the hero's name than it is for me to create a name.

  • But he's he's a perfect first letter.

  • Um, and actually, let's decide how many letters the name is going to be, and I'm gonna go to random dot or GE, and then I'm going to say that the name is gonna be between.

  • You can choose one number.

  • Um, that's gonna be between five.

  • We'll say it's between five and 10 characters.

  • It's gonna be six characters long.

  • Six character, long name.

  • So let's go back to here.

  • So Z so following kindly gave us the letter Z Beer Hunter.

  • Why don't you give us the second letter of the of the hero's name?

  • Since Beer Hunter has been also very active in the chat and this menacing and also said, see people having some latent stations as well.

  • If folks are definitely refresh the stream because, uh, yeah, it would be painful.

  • I can imagine the pain on your end trying to get trying to get through with 30 seconds of late.

  • Enciso, your hunter said Why so z Why are the 1st 2 letters of our six character name?

  • Um Let's see, who else has been in the chat?

  • Alejo.

  • Let's, uh, let's get you involved.

  • Alejo, Calma.

  • Give us the third letter of the aliens name.

  • It'll be kind of awkward if I choose somebody's name who has left the chat, because Because we'll be asking him for a letter and they just won't be providing it.

  • Um, no trends, or we'll get you involved here.

  • But ah, Alejo, if we could get a letter from you for the aliens, The third letter of the aliens name, it's a missing.

  • Did I miss any anything in the chat?

  • I don't think I did.

  • Aliens and nice.

  • They don't have to be villains.

  • That's a good point.

  • And this is a fairly fairly innocent story, huh?

  • Do you do this kind of stream a lot?

  • I only saw it on a watch.

  • People code.

  • We do actually exile.

  • We stream every week, about 2 to 3 times and we're trying to crawl.

  • We're trying to publish more stuff.

  • Um, sort of out to different subreddit and other platforms.

  • So I'm happy that you actually saw it in the in the red It there.

  • So thanks for tuning in.

  • Lejos said w So this is a just a crazy sort of end of the alphabet name so far, but no trends.

  • Air.

  • I'm gonna ask you if you want to double down on G or if you want to choose another letter by now.

  • Where?

  • 76.

  • Good to see you.

  • Um, way in Japan.

  • Um, power hit 6660 I see.

  • OK, interesting.

  • Um, that would be my first and last course at the same time.

  • Sad.

  • It's late for me here.

  • Oof!

  • Yeah, I do know that in Japan right now, it is way late.

  • It's like, super far across the world.

  • So I don't blame you at all for not being able to tune in more.

  • Um, but thank you for tuning in today.

  • Hopefully I will get you involved.

  • So maybe for the next letter.

  • No train, no trends or is doubling down on G So we're saying, Zog Zog is the current name of character.

  • Say, Pease, Lady nine.

  • Hello.

  • Good to see you.

  • And I'm glad.

  • Exile.

  • Oh, that you're enjoying the concept way in Japan.

  • Let's get yo VD hug.

  • We'll get we'll get you next.

  • VD hug.

  • We'll get you next, Hen oxes.

  • I'm new to the stream of love coding and I appreciate it.

  • Awesome.

  • Glad that you're joining us today.

  • Um well, keep stating your G 50.

  • Not on Super 50 bro.

  • Now on Super 50 bro.

  • Awesome.

  • That's super cool.

  • Thanks for particular course and keeping keeping up with it.

  • Let's get you away in Japan.

  • Let's get you Thio.

  • Give me the fifth letter of this of this name and then we'll get VD hug to get the sixth letter.

  • But VD hug.

  • Let's wait until until way in Japan gives us this.

  • Gives us the name.

  • Please finish with an age.

  • Is that beer?

  • Be?

  • Don't call on me.

  • Oh, and Japan says e soggy.

  • And then lastly, VD hug.

  • Let's get them.

  • Let's get the last letter.

  • And, um, let's see who else?

  • Who else do we need?

  • We need to get Heh knock t nine involved, actually, ASAP, Which topics they're targeting is part of CS video.

  • Live pretty much all over the place.

  • Oh, Belen Martin, right.

  • Of course we'll call in them and safety video.

  • Hook says h So sze out.

  • Zo Gay is ok.

  • That's the name of our alien is okay, All right, Cool.

  • So let's go ahead.

  • And, um, let's write this is going to get away, sort of this will get really bulky.

  • And that's sort of how the nature of, um, text adventures goes is things are gonna start to accumulate a bit, but, um, let's we're going to need to use this name now in a sort of a second person prompt when you say, Oh, you are blah, blah, blah.

  • You know, they said the scene sort of speak.

  • So let's get Let's get Bella cures.

  • Bella, if you're in the chat, I want to get Bella to give us the first, um, sort of prompt here, telling us setting the scene for how our adventure is gonna begin.

  • Right?

  • We need we need to set the stage.

  • We need We need thio.

  • Say who the hero is, where they are, what they're doing.

  • What the goal is and where we supposed to go to the first.

  • The first sentence of the prompt.

  • Bella, if you could kindly indulge us in the first prompt first sentence and then we'll take it from there.

  • And then I need there are so many people being so, um proactive in the chat today, which is amazing.

  • It's gonna It's kind of hard to keep up with all the names right now, but, um too cold for Mace his way in Japan.

  • Oh, in reference Thio Veronica against talking about Oh, Siberia.

  • You have Honey's in Siberia, That is Yeah, that's That's not a very warm part of the of the world, especially I think now I'm guessing right now.

  • It's extremely cold.

  • This is this emcee gonna be badass.

  • Eastern European alien.

  • Oh, man.

  • Cannot cold like a shames.

  • Get to learn a lot.

  • Awesome.

  • Thanks so much Kanosh.

  • We'll get you involved today hopefully alive.

  • You're in the chat.

  • Maybe Billa isn't in the chat.

  • It's been a while since we've heard from Bella.

  • But if if Bella you're in the chat, they would love to get a first sentence from you.

  • I know it's also a lot of pressure.

  • So it's kind of tough having on the fly to sort of come up with something.

  • Baroness is try living in Scotland.

  • Oof!

  • I actually don't know that much about the weather in Scotland I would imagine in Europe are Western Europe.

  • Generally speaking, um, sort of the U K Area is pretty chilly this time of year.

  • All I know about England eyes that are released, U K is that it's extremely extremely rainy in gray snow just melted.

  • Awesome.

  • Nice.

  • If if Bella is not in the chat, we may have to come back to Bella in the future.

  • I know Bella is always here, so she may have stepped away.

  • She may be here.

  • Lily Rose is in Spain.

  • It is really warm.

  • It is not warm in, actually, in Boston right now, it's pretty warm so that we're in Cambridge, Massachusetts.

  • This is where Harvard University is located.

  • Uh huh.

  • All things considered, it's actually pretty warm today.

  • It's in the forties.

  • It's been colder than that earlier.

  • Uh, actually was in the sixties like three days ago, was pretty nice.

  • And then it was in the twenties and tens for a while.

  • and that was really brutal.

  • Um, but yeah, it's I don't think it really holds a candle to Europe.

  • I think Europe tends to get really brutally cold at this time of year, so I'm not gonna say anything.

  • I will all smile and enjoy the weather that we have here on the east Coast of the United States.

  • Um, never trust the British weather.

  • Let's get, um, so Bella, we might we might come back to Bella.

  • Let's get, um, whoever we called on that's been active in the chat so far.

  • Um, binary warriors 76.

  • We haven't called on you.

  • You've been You've been here in the chat.

  • So let's get a Let's get a sentence.

  • The first sentence prompt of our text adventure.

  • Setting the scene.

  • Let's get that from Binary Warrior 76.

  • What is going to be the this the beginning of our adventure?

  • Snark Cheese.

  • Seven degrees Celsius And, uh, well, I'm guessing I'm guessing Celsius in northwest England.

  • I don't think someone from England would use the wood used the imperial system.

  • You could probably write a script that collects people's names and updating list that shows all the names that have been active in the chat.

  • That's probably true.

  • That is probably true.

  • Oh, he was talking in for a night.

  • Oof!

  • Okay, interesting.

  • You're only going to go f k.

  • Don't call me, please.

  • I appreciate it.

  • I appreciate the folks that were letting me know that they're going f k.

  • So I don't call in somebody and, uh, and sort of assumed that they're there because, um, yeah, it's hard to tell unnecessarily because people are so active.

  • But you might somebody might Somebody might step away on a moment's notice.

  • Things come up.

  • Reality has a lot of things that introduced complications to these sorts of things, you know?

  • So we might get a phone call or food might get delivered.

  • You are an alien from a galaxy far, far away.

  • I love that you are an alien from a galaxy far, far away.

  • And your name is?

  • I'll get from from, uh I don't know.

  • What would that be from, I guess from Croatia.

  • Some something insert Eastern European country.

  • Uh, alien being alien to himself.

  • Said Veron e Yeah, that's true.

  • By near where 76 just responded.

  • Ought to leave now.

  • Thanks for letting me choose a letter.

  • Colton, My pleasure way in Japan.

  • Thanks so much for contributing.

  • Let's get let's get Have a nice day.

  • You as well.

  • Let's see who haven't we gotten a letter from Snark Cheese Snark Cheese?

  • I haven't seen you give us anything yet.

  • Let's get something from from Snark Cheese.

  • Let's get the second sentence of our prompt.

  • We need a little bit more information in an alien from a galaxy far, far away.

  • But what are we doing?

  • What are what's our goal?

  • What's our plan?

  • Obviously, you want to get peanut butter from Earth, right?

  • We want to prevent the earthlings from eating all the peanut butter.

  • It's the It's a precious resource for intergalactic travel.

  • While we can't grow our own peanuts and make peanut butter, that's too.

  • It's too complicated to to know at this point in time.

  • All we know is that we need to get the peanut butter that exists on Earth, right?

  • That's that's the plan.

  • Um, so start cheese.

  • What's the second sentence in this prompt to set the scene?

  • What are we doing?

  • You explore new worlds to find new home for your species out to use it I will call ideas.

  • I'm gonna get you soon.

  • Don't worry.

  • A monumental task has been laid ahead of you by high command.

  • Okay, A monumental task has been laid ahead of you by high command.

  • Kate.

  • Sounding pretty epic.

  • Sounded pretty epic, user.

  • What is the next sentence following snort cheese is awesome.

  • Said it's a monumental task has been laid a headed you by high command.

  • We need a concrete goal that we need to be able to start making choices.

  • This is a choose your own adventure.

  • This is a text adventure game.

  • So we're gonna need to be able to say, you know, I don't know if you want to do this in, like, you have three options in front of you, but really, I mean, this is this really depends on how people decide the word their sentences.

  • Right.

  • This is this is how it's going to set the pace for the adventure, but ought to use that We're gonna get the next sentence from you.

  • So go ahead and contribute that previously you said you explore new worlds to find new home for your species.

  • But we're going to I'll ask you to confirm if you wantto maybe reward that or use that or choose a new sentence.

  • Given what Snark Cheese said, Our weather doesn't let us cultivate peanuts obviously says as t There we go.

  • That's great.

  • A great amount of sort of exit exposition explaining the situation in hand, analyzed Earth's climate and grow our own on our planet.

  • I guess we could tear a form a planet the planet, you know, developing atmosphere capable of growing peanuts and then therefore manufacturing peanut butter.

  • And this is all, hopefully within the realm of possibilities for a for a alien species with sort of intergalactic travel from your mission depends the future of our planet.

  • Okay, so from your mission depends the future of our planet.

  • Awesome.

  • You are to infiltrate the earthlings, live amongst them, become one of them and learn the way of the peanut butter.

  • Excellent.

  • Excellent.

  • I think that's a that's a great sort of way of framing the framing the adventure.

  • So let's see who has who has been in the chatter I haven't called on.

  • So no trends Or I think it called the No Trains, or I'd use a beer hunter S.

  • H m 746 Hello, world.

  • Awesome.

  • So right on time S h m 746 we're making a text adventure.

  • And at what you see on the screen is essentially the text adventure.

  • But what?

  • What we need now is we need a prompt to basically tell us what we're doing right now at this moment in time, and we need to start making choices.

  • We need to start actually driving the text adventure.

  • So right now, we've had a lot of exposition, but we need to basically have something along the lines of you are at so and so place, and you have to do so.

  • And so, like, you have three choices in front of you, right?

  • And then once we get to that point, we can actually start asking for input and getting the user to choose which choice they want to decide on.

  • And then we can have sort of branching paths, and then this That'll be pretty interesting.

  • So as a gym, 746 give us the next sentence in our prompt.

  • What are we when I'll move this over?

  • Just a touch so that we can see it.

  • Uh, with the chat there in the overlay.

  • What?

  • What is the next?

  • What is gonna lay the groundwork for our next sort of piece of this text adventure and a grim waltman.

  • Hello there.

  • Good for thanks for joining us.

  • Appreciate.

  • It s agent 746 It's on.

  • You know, everything is on your shoulders.

  • Where are we?

  • What are we doing?

  • How do we get this adventure kicked off?

  • Hello.

  • World is so ironic right now.

  • Says as the a little bit.

  • It's ah, like, actually Hello Earth.

  • Sort of as an alien infiltrator.

  • Reminds me of the old invention books where you turn to a page depending on your choice is exactly what we talked about that actually early in the stream.

  • This is the This is the sort of Choose your own adventure style book in twitch form and been everywhere.

  • Yes, this will get cluttered fast.

  • Wouldn't it be better to put our prompts into the file, import them from their absolutely would on?

  • And once we get a little bit larger, I think we will actually probably start doing that.

  • Curie uses High Colton.

  • Hello.

  • Cure you.

  • Thanks for joining.

  • Still waiting on S h m 746 for the next part of the prompt.

  • If maybe they step.

  • They said that they during the child, that it looks exciting.

  • But if they might have stepped away, we may ask.

  • I make a job on three.

  • Involved are grim Holtzman actually, since they both just joined the chat.

  • Um, but wait just a second more.

  • Maybe they would eat peanut butter.

  • That's true Is this is the kind of text adventure it's gonna make.

  • You want to make a peanut butter sandwich?

  • There's somebody mentions of peanut butter.

  • Can I get a pass?

  • Yes, absolutely.

  • I'm gonna pass.

  • Let me know if you want to get ah involved a little bit later.

  • S h m 0746 Grim Waltman.

  • Let's get you involved.

  • I want you to fill in the end of this prompt.

  • I wanted to say, uh, sort of how we can get how we can set the stage for taking the adventure to, ah, position where we can actually start making choices.

  • And I want us to be able to say something along the lines of, um, you something more concrete and sort of right in front of you, like you are currently at blah, blah, blah, blah, blah, blah, blah, blah, blah.

  • You can do one of three things, or maybe something like that.

  • Just what we can at least leave a framework for ourselves.

  • And if folks have other ideas, definitely put them in the chat.

  • Um, destroyed the peanut butter monster.

  • I didn't know there was a peanut butter monster, but if we could write a peanut butter monster into the story, that's the power of the chat.

  • But we'll say we'll ask the grim waltman here.

  • Thio sort of put us down on firm ground, actually get us into a position to make some choices.

  • The sandwiches.

  • Hollywood's turning this into a movie.

  • The first trace could be the way you infiltrate the Earth.

  • Ah, yes, of course, says VD.

  • Hug that.

  • That's actually quite excellent.

  • We could do something like that.

  • Um, yeah, why don't we do that?

  • Actually, if unless Graham Waltman has a different suggestion, we will use that as the beginning of our text adventure, just so that we can at least get to a point where we can start making choices.

  • I feel like you should be the CEO of a big peanut butter company as the second in command of Alien Survival Force.

  • You have to implement three tasks, says Bunny on the run.

  • Okay, that's interesting.

  • Um, okay, so that's both of those are good ideas.

  • So let's let's say that so good.

  • Waltman has a respondent.

  • So good marksman.

  • If you have ideas, definitely contribute.

  • We'll say we'll take VD.

  • Hugs Example.

  • Oh, Hamilton.

  • I'm not ready yet.

  • That's okay.

  • Um well, say, let's see.

  • Where was it?

  • It was here.

  • First choice could be away.

  • You infiltrate the earth, right?

  • Okay, so they're three tasks that we could implement.

  • Says Bunny on the run.

  • So we'll do that as part of the narrative.

  • There's Bella.

  • Cure is your ascent to carry out a secret operation to still peanut butter from the earth.

  • So we'll use that.

  • We use that you are sent to carry out a secret operation to steal peanut butter from from the earth.

  • And then VD hugs.

  • Comment was fantastic.

  • So the way you infiltrate the earth so we'll say we'll say something like, How will you first infiltrate planet Earth?

  • Right.

  • So now we have, like, the ability to start prompting for input, so This is where it's gonna start getting entertaining.

  • So I want we'll say at least three choices.

  • But we'll let since bunny on the run and Grim all spent feel free to contribute here.

  • Since Bunny on the run contributed the second in command of aliens about before us three tasks.

  • Comment.

  • I want Bunny Thio to suggest one option user man to Hello.

  • Good to see you.

  • Um, as it is a good thinking, but, uh fantastic.

  • So, bunny on the run, I want a task from you.

  • And who haven't I called on has been in the chat.

  • I apologize.

  • Curate.

  • You cure you.

  • I don't think I called on you.

  • Secure you.

  • If you have an idea, contribute one option.

  • So it's gonna look something like this.

  • So we'll say, um, first, prompt options.

  • It's gonna be equal to one.

  • And this will be, um, you know, option A to option B and three options.

  • See?

  • Right.

  • So here we can say Prince.

  • Well, actually, what we're gonna do is we're gonna say no, Actually, no, no, this this is good.

  • We're gonna stay print first, prompt.

  • And then what we're gonna do is we're going to say, um, infiltrate option is equal to input on first prompt options.

  • And what this is gonna end up doing is it's going to display the title of the intro the first prompt.

  • And then it's going to display the three options that we're gonna choose here in just a second.

  • But it's gonna assign whatever we whatever value we choose 12 or three back into infiltrate option.

  • And we can probably turn this into an ent and maybe use that in a sort of a list of options.

  • But we'll worry about that in just a second.

  • But let's for now, make sure this is running appropriately, so we have all of our stuff so far.

  • So aliens, intergalactic marvel.

  • These earthlings are not using the full potential, etcetera, etcetera.

  • You're an alien from a galaxy far, far away.

  • How will you first infiltrate Planet Earth knows that we have three options A, B and C, which we haven't decided on yet, but I can say one enter and then the program exits because we've gotten the result and that's the end of our s

All right.

字幕と単語

ワンタップで英和辞典検索 単語をクリックすると、意味が表示されます

B1 中級

チャットで書いたパイソン文字の冒険!- CS50ライブ、EP.52 (PYTHON TEXT ADVENTURE, WRITTEN BY CHAT! - CS50 Live, EP. 52)

  • 0 0
    林宜悉 に公開 2021 年 01 月 14 日
動画の中の単語