My program is commented well and is easy to follow. I am logging data to the console that helps to explain what the problem is.
The computer makes one turn. I follow. This works well. The computer makes another turn. I follow. I get a game over message. In the console, I can see that my second choice was correct. The problem is that the program accepted my second choice as my third choice too, which was incorrect. I can’t figure out why the program takes my second turn and uses that choice for my third turn too without allowing me to click a third time.
Like I mentioned, the console is logging data that is very helpful for describing this problem. The problem functions are computerTurn() and humanTurn().
If someone could take a look at this, I would appreciate it.