Download presentation
Presentation is loading. Please wait.
Published byMary Barnett Modified over 9 years ago
1
TIC-TAC-TOE FELIX CHEN CLUSTER 5: Computers in Biophysics and Robotics
2
What is Tic-Tac-Toe?
3
YOU FAIL!!! GET OUT!!!
4
Rules of Tic-Tac-Toe Two players (‘X’ and ‘O’) 3x3 grid used for board Players take turns marking spaces on board with ‘X’ or ‘O’ Goal is to get three-in-row horizontally, vertically, or diagonally Draw is called a “cat’s game,” where all 9 spaces are filled, but there is no winner.
5
Examples of Tic-Tac-Toe Outcomes Player ‘X’ Wins Cat’s Game
6
How the Program Works Written in the C language. Board with computer’s move appears. Player enters in coordinates of desired move. New board appears with current position. Repeats steps 2-4 until there is a winner or draw. Outcome is stated i.e. “Computer wins.”
7
In the beginning…
8
The Frustrating Times…
9
The End THA YNK OU!
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.