Desert combat help : how to increment ordersGiven?

Welcome to the forum! Please format your code properly. You can learn how, here: [Essentials] How To Post/Format Your Code Correctly

That being said, to “increment” is to increase by 1 (or any value). Think of it as a counter. ‘ordersGiven’ is the counter in this case. Every time you give an order, you want to increase ‘ordersGiven’ by 1, or increment it…’+= 1’ is a method for doing this. Another method, which does exactly the same thing is:

ordersGiven = ordersGiven +1.

The ‘+= 1’ method is shorter (to type), but still does the adding of 1 to the counter.

1 Like