I am a newbie. I have enclosed some code I am working on. It is the beginning of a tic tac toe game. When I enter two different names, the program only reports the second entered name as both players. What in the frig am I missing?? Thanks for any insight.
Look at lines 5 and 22 in the Player class.You have two players but only one place to store the name.
I'd probably go about things a little differently, but it runs and you don't fix what a'int broke.
There are worse crimes than burning books. One of them is not reading them. Ray Bradbury
posted 4 years ago
Thanks for the reply. I would be curious to see your "I'd probably go about things differently." As a newbie, I am always curious to see ways that may be more common, efficient, more generally accepted, and etc. If it is not too much trouble, would you mind offering your suggestion?