Gavin AI CreatingTheFleet

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi Gavin it's Amy and I'm just going to do a short video here to show you what you need to do to get your code for you so I'm just going to step through the smaller files first before I get to Invasion so with alien what I can see here is when we have the init method or function we always have to have two underscores around I want you to watch the code coloring change as we go through this when we do this two underscores okay so it should update this stuff right here we'll see if that is the situation as we go through but you always want to make sure that you have your two underscores around the init type of method or functions okay so I'm going to go ahead and save this okay want to jump into bullet same thing here got have the two underscores see oh we're missing a colon right here it's going to cause some issues as well um let's put the Imports here and then do a blank line in between you can even snug this up here so looks like that um this should not be on two separate lines so just let your editor do the wrapping um I think all of these are flag because I think settings doesn't have um correct well it doesn't have the correct indentation so let's just go with kind of scrolling through here see we got nope we have vertical alignment with regards to the function so it's always one tab in with that DF and then any line underneath of it that um will need to be indented as well because this ends in a colon and the rule is a divid ends and a colon as long as you want that statement to be part of that body um then you're going to have issues now I'm not sure what this is because this should be separate here so let me jump over here to the PDF file for bullet looks like we have a draw bullet function so you're going to need to look at this file so when you're looking at the vertical alignment because I know you mentioned that um this is just a tab so this right here is one Tab and so then you can see that this is vertically aligned with the doc string for the class and then again we have a tab in from the DF you always want to make sure that you have a space between DF and the start of the function name as well but that should be the vertical alignment so I'm not going to um complete the code here completely um but that's what you'll do here so you'll have a DF and think this is a draw pullet all cool one and then these would be indented here so if I jump back and look at bullet draw a bullet yep that looks like what was missing and you can always um click the play button here for these individual files and you'll be able to see if you have any errors down in the terminal okay so this one is complaining about aior game oh you're missing an underscore in between okay so now it looks like the code coloring is good there go ahead and run it again no errors in this particular file as of now okay um let's jump back to alien finish up this file here only thing I would say here is just put a blank line in between um so that you don't have two functions right next to each other so let's go ahead and run this one too again no errors okay so those two look clean so far class of settings again this all needs to be indented and the nice thing that is about vs code is you can highlight all of the lines and hit the Tab Key and it will do all of them at one time okay so let's go ahead and run this one yep lets like it's clean here we jump back to buet um into alien um some of these things should start to disappear we'll just see if we have some continued issues ship see here ship all looks let's jump over here and look at the ship file we're importing P game so you're missing that statement here at the top import P game and now some of that errors have gone away doesn't like this one here for some reason little that ship oh you're missing a statement in here so you can just take these lines here and then bring them in here have them in never use a space bar bar when you're doing working with this um this looks like it needs to be settings for some reason it brought it in funny like that um let's see jumping back that should be the exact line so something's still going around with this coloring here and it might be just because it might be an alien invasion as well okay so let's run it to see maybe what they'll give us an information nope and Alien Invasion okay so this is the one that's going to take the most editing for you so let's go ahead and pull some of these lines together just to make things a little smaller um what I'm going to need you to do for this one is you're going to need to look at this PDF file and you're going to need to go through it line by line okay and this has taking you all the way up through creating the fleet we still have a few to work through um for the remainder of the semester um to get grades in there for you but again following that vertical alignment all the way through making sure everything and again this just let it WP um this actually right here is not using the full screen mode so if that's what you were working with you could certainly leave that but try to get it all working just like this and then I want you to send me a new file whether it be working or if it's not working so that I can continue to help you debug okay I'll send this in a zip file with these five PDF files thank you
Info
Channel: Amy Helgeson
Views: 8
Rating: undefined out of 5
Keywords:
Id: Ee4YedyewMI
Channel Id: undefined
Length: 6min 22sec (382 seconds)
Published: Thu Apr 18 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.