My project was to make the game of NIM with some modified conditions. So far, I've been able to satisfy those, such as adding "sports commentary" and changing the amount of objects that players can remove to 4. I also made it so that the computer doesn't lose on accident due to rand() statements. The one that I'm struggling with is setting it up so that the program prints out symbols for how many objects are left.
It should be something like this.
num_objects = 4 cout << "****\n";
However, I'm struggling to figure out how to get it to print a different amount for however many numbers are left. I'm guessing it has something to do with a "for loop," but I don't know exactly what. Here is my code so far.