Placeholder Image

Subtitles section Play video

  • All right.

  • Hello, world.

  • This is CS 50 Live.

  • My name is Colton Ogden In case anybody's brand new to the Stream states fifties.

  • Harvard's intro to Computer science Top by David Malin This is our stream where we do all kinds of fun stuff.

  • We build things from scratch.

  • We talk about things like Callie Lennox, which Nick Wong from Yesterday Stream happened.

  • Help us out with on a bunch of other things.

  • Talk about libraries, Talk about Webb, talk about games, all kinds of stuff.

  • But today is actually very experimental.

  • Today we're gonna do something completely different.

  • We're gonna kind of evolved from last week's text adventure game that we did, which was basically the gist of that was the chat wrote all of the text adventure lines in the text adventure, including branching paths and whatnot and sort of I didn't really.

  • I have too much of a say in the process.

  • I was the, I guess, sort of the person in charge of writing down everything, compiling it, really compiling it, but running and making sure that everything went according to plan and, uh, off of that idea.

  • What if that would be really fun really interesting is to actually take a step further than that.

  • Let us write a Python script from scratch, maybe multiple python scripts where the only thing that basically the only lines that go into the script are what the people in the chat actually end up writing.

  • And this is largely, like I said, an experiment.

  • And so I'm not entirely sure what the best way of doing this necessarily will be.

  • And maybe we'll d'oh several versions of this and we'll iterated on it and build it up and make it better and better over time the actual flow of this but today is gonna be just kind of trial and error.

  • We'll see how this works out.

  • I have an idea as to what I want to dio how I want to actually structure this, but we will.

  • We'll see if that ends up theoretically being or actions that tangibly being as good as I am thinking it will be in my head.

  • But thanks to everybody who is in the chat, we got a ton of people that they're already in your, um and some people were asking if we're gonna be using a chat, but for this, we will not be using a chat, but for this it's, I think, theoretically possible.

  • But there are some issues, especially with python being a indentation focused language people would have to write.

  • The people wouldn't need to be able to write back space and what not to like Deion Dent or shift tab, or what not?

  • And those would be considered asking escape characters, probably in the in the chat bott.

  • And so that would get a little messy.

  • But I think in theory it's possible, so we might explore that at some point in the future no promises there.

  • We'll probably do a more manual sort of curated approach in the short term, but thinks everybody is tuned in as lead.

  • Bad ignite liquid 13 Rome ork Ah, meet.

  • Haven't seen a meet for a while.

  • Greetings from India.

  • Some rot.

  • J.

  • P.

  • Guy came in and asked me how scared of my from us on a scale from 0 to 9 about how weird the code might get today.

  • And I'm actually not scared because we're gonna be curating everything.

  • But I think of this work completely automated.

  • It would be a little bit a little bit intimidating.

  • So here's the idea that I have The idea I have is that I will basically right in.

  • I'll have a marker, I'll say.

  • And this is just a test.

  • But all basically right in peek at you like this Quips can't type for some reason there we go.

  • A little bit of a delay.

  • So when I write tickets shoe, that's like they're ready, Set, go.

  • And then what I want people to Dio is to write in we're gonna do is we're gonna construction.

  • So here's my idea.

  • Here's my idea.

  • Someone switched on my computer before we actually get started out before I start writing any code, this is my project.

  • I was going to create a new file here.

  • We'll call this a test one dot pie and python extensions recommended.

  • That's okay.

  • What we're gonna dio is kind of reserve slots.

  • This is my first iteration that I have because I realized if we don't do this, we run the risk of just absolute chaos, like whose code goes in front of whose code like it won't make any sense.

  • And so it makes more sense to do this kind of step by step and actually go line by line.

  • And we can even talk about this.

  • Use this as an educational experience for some people with ABC first time joining a twitch lifestream everywhere.

  • You chose an interesting one to be a part of.

  • So I hope you enjoy your time.

  • But the goal is gonna be I'm gonna say peek a chew.

  • And then what?

  • I want everyone in the chat who wants to contribute to the code, what I want them to do.

  • And this is being a little bit sluggish right now, but I want people to write in.

  • I think this is a emoji that everyone has access to the Mr Destruct oId.

  • I want three of those.

  • This is this is basically inspired by some route 61 92.

  • He wrote that up above.

  • So whoever wants to write code as soon as I write P ca choo, I want three.

  • Mr Destructor it.

  • Then what I'm gonna do is I'm gonna say Okay, so line one is going to be reserved for Well, say so.

  • The true king niece went first, right?

  • So the true kidneys gets the first line and then we'll sort of write out the list of Exactly Everybody's doing a great job in the chest.

  • So we'll do that.

  • We're going to structure the lines based on who writes.

  • There were three chats there.

  • Three Mr Destruct.

  • Right emojis in the chat first.

  • That way I can visibly see very easily who wants to contribute.

  • First of all, because cold calling on people didn't seem to work to over the text adventure.

  • So I'll call on whoever wrote the three robots and will write their lines.

  • They're used names out in comments, and that way we can see line by line, who's contributed to the program, right?

  • And if we get to the end of the Mr Destructor is or whatever, we can call Piggott you again and get more input.

  • So that was just a test, because there's explaining it.

  • So we're not.

  • That's not gonna be the official set of user names yet, but whoever just contributed whoever just write your Mr Destruct Lloyd's in, Um, get ready for the for the next speaker, chew, because what I'm gonna do is I'm gonna look for my Pikachu emoji in the chat.

  • I'm gonna go after that and start pulling the name.

  • So anything before the picture, I'm just baste again.

  • Ignore.

  • Um Andre The ground rules is as soon as I call Pikachu.

  • If you want to contribute to the Python script, I need three.

  • Mr Destructor, it emojis from you because that visually going to use that as an indicator to see, um you know who wants to contribute to the code?

  • I'm not not cold calling on people today just so that I don't put anybody on the spot.

  • And people, maybe people are busy.

  • They don't have time to come up with something on Lee.

  • People who are who want to contribute.

  • All right, so hello, guys coping.

  • And Colton's chair.

  • That's money.

  • I'm gonna go ahead.

  • I'm gonna call Pikachu.

  • And as soon as I call Pikachu, I'm gonna put the list of names together.

  • And then I want the list of names or put together.

  • We're going thio one by one, line by line, go through it and build up a python program.

  • So here we go.

  • Ready?

  • Uh 123 Peek atyou.

  • All right, J P.

  • Guys first.

  • Nice.

  • So I'm gonna start putting together a list.

  • So the J.

  • P guy.

  • What's V Ruthless V.

  • Abbas Shaw.

  • Some rot 61 92 and murg missile.

  • Um, I apologize if I misspell your name.

  • So has are trying to make sure I catch them all.

  • We'll do this just for a minute or two.

  • We're not gonna have to.

  • Oh, did I miss disco damaged?

  • I did.

  • What's?

  • That's my bed after disco imaged.

  • So how's your injured?

  • Uh, hey, White out 16.

  • Scared to sign up for a line.

  • And I don't even know what the program is.

  • We haven't decided what the program is.

  • That's the beautiful thing.

  • Um, m r t n c and Mr Tank Thorn in Russia at the time pronouncing the name.

  • Uh huh.

  • So we're really all in on Pokemon?

  • Uh, just using it as an indicator for today, I guess.

  • Um, Budanov, if you have ah, small problem and it's not related to the stream.

  • Just hit me up off to the side.

  • But if it's related to the stream, feel free to, uh, feel free to, uh, write it there in the chat Babak night.

  • There we go.

  • You're doing code lines.

  • True.

  • Kenny's.

  • So, uh, you will you will be telling me what you want written down in the form of a code line.

  • So you're gonna have to write the code line out, Mister Mister Tank Thorne wrote it again.

  • So we will, uh, get as many people as we can before we start taking duplicates.

  • Luigi's in the chat.

  • Shen Long Shen win is in the chat.

  • Um, that's already 12345678 And it's like 11.

  • 10 Arts tent literally tunnel.

  • It's written on the left side of the text editor 10 lines.

  • Uh, okay, so if you want to start with 10 lines, that's great.

  • Okay, Shep Official Cool.

  • Shub h official 01 That's 11 when there will be a stream about problem solving checking code.

  • That time, I'll post my problem.

  • Fine.

  • Try it now.

  • Test rent.

  • Devil lobby.

  • Ship it.

  • This is a beautiful program.

  • So far, just a set of comments.

  • I'm quoting Project one for CS 50 web.

  • All watching this also bunny on run.

  • I don't think they already so just didn't know.

  • Okay, No bugs.

  • You know, I That's true.

  • There are no bugs in this.

  • There we go.

  • Andres.

  • Andres gonna take part Nice cap.

  • 10 333 And pretty soon.

  • Well, well, actually, maybe get started on a script of some kind.

  • Now, what we could dio is we could just jump into this completely fresh, not have any goal and just let people write whatever they want, which is totally justifiable and totally chaotic.

  • Or we could decide on a goal we could say, OK, let's altogether code Mario or something like that.

  • Something along the lines of Speller would be pretty big, but we could say something like Mario and then all work together on doing that.

  • But we could try both of them.

  • Experiment.

  • See which one's entertaining, right?

  • The whole goal of this is to be educational and entertaining.

  • Can we have a chat?

  • Bott, Today?

  • Uh, this is Bunny on run.

  • I'm not sure if you're referring to a bought that, uh I'm not sure what you're referring to with the body.

  • If you mean like, if you're asking the chat to Koda chatbots with you, um, I vote Chaos says as Lee Okay.

  • Who votes chaos?

  • Who votes a goal?

  • Project Oiler project early would be interesting.

  • Actually.

  • Chaos.

  • People want chaos.

  • Everyone loves chaos.

  • all right.

  • Oh, somebody said Goal.

  • So Hauser said, Goal, my goal is chaos.

  • We'll what we'll do is we'll say it.

  • We'll do chaos first and then maybe a goal later.

  • And if this goes well, and if people enjoy this, we could maybe do this more frequently.

  • This kind of stream and maybe expand on it, add more features and whatnot.

  • But I think we have a pretty sizable list of people.

  • If we run out of people who've contributed lines will call Piggott you again.

  • Whoever wants to contribute can contribute.

  • But let's go ahead.

  • And we're gonna preserve these comments because these comments are gonna help us identify sort of who's contributed to the script.

  • And we can see No who's built what as we've gone on.

  • So J P.

  • Guy, you setting the stage for this chaotic script that we're running here?

  • So you go first, tell me what it is like.

  • You get blamed.

  • Yes, 80 Dominate.

  • Hello.

  • Good to see you.

  • S O J P guy.

  • Let's get the first python line.

  • Any of you aren't familiar with Python?

  • This might be more difficult if you've volunteered.

  • Thio, contribute.

  • Okay, so we have a function.

  • Ah, function.

  • Signature declaration Check.

  • Okay.

  • I like it.

  • So this is a beginning of a function from people who aren't familiar with Python.

  • So, uh, this is interesting.

  • So the ruthless V And if you, by the way, if you want to get out of a block of an indentation block, let me know and then 80 dominate.

  • Yes.

  • I'll put you down here at the bottom of the rules.

  • 80.

  • Dominate our that.

  • I'm gonna call Pikachu, Basically, which means put the picture emoji in the chat.

  • And anybody who wants to contribute to this script needs to put three of those robot destruct oId emojis.

  • You should have access to it as a general twist user, but be ruthless.

  • V.

  • Let's get your line as line number two.

  • And again.

  • If you want to come out of the oven nested block.

  • Let's say we're in a function.

  • You want to come out of the function, just specify.

  • Wow.

  • One print.

  • What?

  • We have the first troll today, so we haven't called the script the function to be fair.

  • So while one print what?

  • Beautiful.

  • And I'm just gonna invent these all nicely like that.

  • So there.

  • We have our first, uh, beautiful function.