Hello!
I am taking my first ever coding class, and we are using C++. I kind of understand how a for loop works, but not for the purpose that I am trying to accomplish. Currently the game is called NIM, and is played by inputting a number 1-3 that counts down the number of objects, and whoever makes the counter reach 0 first loses. Our instructor gave us the base code, and one of our assignments is to include a loop that counts out the number of objects left, and displays them using symbols.
For my purposes, I only want it to print symbols when num_objects <= 10, however I am unsure of how to get it to print symbols (I would like to use #'s). They should also print in a line. (I am referring to the for loop on line 33) (The current for loop on there is a little pointless and doesn't accomplish anything I want to do, it was just leftover from myself messing around to learn how it works)
This is a step in the right direction!
It prints numbers 20-1 after every turn, however now I need to make it do the following:
Should print symbols instead of number (10 #'s instead of 10 numbers)
Should be dependent on how many objects are left
Should print in a single horizontal line