Tic - Tac - Toe

This is from a blog post called “Zero Sum  Game”
If you know what you are doing, you can't lose at Tic-Tac-Toe. If your opponent knows what they are doing, you can't win at Tic-Tac-Toe. The game is a zero sum game. If both players are playing with an optimal strategy, every game will end in a tie.

This was a hard project.  You just don't realize all of the logic that goes into a simple game, until you have to start mapping it out.

I did a bit of extra research and added a few things that we haven't covered yet in class.  The code below checks for user input and verifies whether or not it is a numeric input.  (while move.isdigit())




Comments

Popular posts from this blog

Collatz Hypothesis

Learn to code, he said!

Week 3 - Just getting fun!