so this week were are doing IF statements. These I can tell will be pretty fun. If statements basically give code life and more options than just a one-way code. For example, in gridworld, a character can move anywhere it wanted despite other objects occupying the space. But with the application of if statements, one can make it to where the character can't move anywhere because an object is in it's way. learning how to do if statements wasn't so hard, i mean the whole logic behind it is "if it does(n't) do this, it'll do this instead."
The labs for the if statements were fairly easy and I was able to become creative. in these labs, i did not need much help on figuring out what to do, so really if's just come natural to me :p
No comments:
Post a Comment