The, +, operator has several purposes but increment is not one of them. The special unary, ++ and its counterpart, -- are increment and decrement, respectively. We’ll probably find that this nomenclature is inherited from C, the grand daddy of many of today’s programming languages.
The magic of these operators is that they are in situ, or in place operators and need only one operand. They can be used as prefix or postfix, meaning they can be applied before the variable is used in another operation, or after.
what a crap lesson this one was. Why would they throw terminology like i++ at us without explaining in depth wtf that is supposed to mean. Thanks to MTF for explaining it even though in his explanation he used examples that no noob like myself would understand.
I’m having trouble figuring out the third command in the insurrections for this section. " 3. Edit the condition in the while loop so that the loop is executed twice (only 6 tiles should be placed)."
How on earth do I edit the condition in the loop to execute twice?
Im completely new at this i read what booga wrote and i think i kind of get it but not completely. I think my issue is that i dont fully remember what increment and iterations actually means so if someone could explain that it would be great . I eventually succeeded in making it so that only only 6 tiles showed up but i did it by changing (i < 10) to random numbers and eventually ended up with (i < 2) but there is clearly something im not getting because i dont understand how im supposed to figure out 2 will make it so that there are 6 tiles ?