I just started learning coding about 4 months ago, I think Tic-tac-toeMy design goal was the first application that I've ever written in C# not counting the mandatory "Hello, World!".
So for me, I really wanted to revisit this gametry and codemake a new one, unfortunately I don't have the original code anymore,"clean" and well-designed Tic-Tac-Toe game but I can assure youalso to try and use concepts and programming constructs that it was a lot worse than whatever mess I've thrown together now ;)I'm new to.
Anyhow, as always both positive and negative feedback is welcome. My design goal wasI'm planning to try and make a "clean" and well designedimplement an "AI Player" class later on. I know that Tic-tacTac-toeToe is a solved game so there are more effective approaches for AI logic but alsoI've never programmed an AI before so my idea is to try and use conceptsat runtime generate a "database" of all possible gamestates, and programming constructs that I'm newthen have the AI rank each "intermediate gamestate" by the amount of positive outcomes (that is where the AI wins) - negative outcomes when it decides where to place its marker. Would this be a good idea and would it work at all?
Bonus question: I'm planning to implement an "AI Player" class later on, I know that Tic-tac-toe is a solved game so there are more effective approaches for AI logic but I've never programmed an AI before so my idea is to at runtime generate a "database" of all possible gamestates, and then have the AI rank each "intermediate gamestate" by the amount of Both positive outcomes (that is where the AI wins) -and negative outcomes when it decides where to place it's markerfeedback is welcome. Would this be a good idea? / Work at all?