(i am not an expert, okay?)
you see, when you start playing the game, you're not going to stand by the tv all the time, clicking on it, right? by the fourth click you give on it, you should get bored of clicking on the tv. so when you click the tv more then the 3 times, a message should be shown, something like "Don't you get tired of looking the tv?!".
I guess then, that you should do something like this:
if (cool_thing == 4) {
Display("Hey! Didn't you get bored yet. Stop it!");
}
otherwise, you might wat to make a loop, but i'm not sure how to do that.
as cool_thing is as a variable, you should try to set the var back to 0, by the fourth click:
if (cool_thing == 4) {
cool_thing = 0; {
Display("The TV is off.");
}
}
i didn't get why the "<3", if you already set the options for 0, 1 and 2, that are the only int options for anything minor then three.
also, i didn't understand why the "+=" without any number (for example: "+= 4"). the operand "+=" adds something to the variable, and "-=" subtracts.
i hope i helped to clear up things for you.
you see, when you start playing the game, you're not going to stand by the tv all the time, clicking on it, right? by the fourth click you give on it, you should get bored of clicking on the tv. so when you click the tv more then the 3 times, a message should be shown, something like "Don't you get tired of looking the tv?!".
I guess then, that you should do something like this:
if (cool_thing == 4) {
Display("Hey! Didn't you get bored yet. Stop it!");
}
otherwise, you might wat to make a loop, but i'm not sure how to do that.
as cool_thing is as a variable, you should try to set the var back to 0, by the fourth click:
if (cool_thing == 4) {
cool_thing = 0; {
Display("The TV is off.");
}
}
i didn't get why the "<3", if you already set the options for 0, 1 and 2, that are the only int options for anything minor then three.
also, i didn't understand why the "+=" without any number (for example: "+= 4"). the operand "+=" adds something to the variable, and "-=" subtracts.
i hope i helped to clear up things for you.