After each hand ( a hand is when one player wins the majority of the odd number.) For example if a round is 5 plays, the hand ends when either the computer or the human wins 3 plays. Print a message stating whether the computer won the hand or the human won the hand and print the current record like this:

First of all, you're not using your characters and integers consistently at all. It's going to cause you a lot of confusion in the future. The character '1' is not equal to the number 1 In readAndValidateUserMove() , there is really no need to use tolower() on the input because there is no such thing as a capital number. The next thing you should do is make it so that function converts the character the human typed into an actual integer. To do this, rewrite your return value as return result - '0'; After that, get rid of all those silly quotes around all of your numbers, and get rid of that 48 in generateCompMove() . The way you're handling those numbers is almost guaranteed to cause problems down the road.

Now, onto what you're asking: You want to log the number of times each player has won, correct? You already have all the information you need, it's being logged in totalHumanWins and whatnot. All you need to do is print that information at the end of the program.

EDIT: Yes, that new code you just wrote would be correct, but only if you also correct that other code.

that's what I have so far. The silly thing is, it always show same number for Computer and human.

The reason why I have numberOfGames/2 is because I need to write who ever win the most games (so meaning, the user has to enter an ODD number so it can determine who wins the most games) is gonna win the hand.

I discovered another problem in that code: totalComputersWins and totalHumanWins are set to zero every time the loop loops. You need to put that at the very beginning of your program or nobody will ever win.

Also, why not just directly compare the two values directly to see who wins?

I discovered another problem in that code: totalComputersWins and totalHumanWins are set to zero every time the loop loops. You need to put that at the very beginning of your program or nobody will ever win.

Also, why not just directly compare the two values directly to see who wins?

The code I just showed you would compare them. You can't guarantee that there won't be any ties, even with an odd number, though, because of the fact that there can be a tie of the computer and user throw the same hand.

You would need two more variables, ComputerPoints and UserPoints , and increment them whenever one wins more hands.