My brother is taking programing 101 classes but for one class they're using C++. Good opportunity for me to learn it through helping him
The other day he was using an int instead of a bool in his homework. I tried to help him switch it to a bool, but then he got upset and reverted to an int because he didn't want to change how the variable was assigned
Well that's not the worst thing to do.
I convinced someone to switch their Boolean to an int, because they were trying to use a loop to find out if a move was valid and another loop for figuring out what move is valid.
So like, the first loop says yes you can put it in this column, the second one says this is where it goes if you put it in this column. Put the loops together, and used -1 to say that it wasn't valid.
Some languages aren't too picky with letting you use ints as a boolean. Pretty sure C++ let's you use 0 as false, and anything else is true.