Presentation on theme: "TIC-TAC-TOE FELIX CHEN CLUSTER 5: Computers in Biophysics and Robotics."— Presentation transcript:
TIC-TAC-TOE FELIX CHEN CLUSTER 5: Computers in Biophysics and Robotics
What is Tic-Tac-Toe?
YOU FAIL!!! GET OUT!!!
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.
Examples of Tic-Tac-Toe Outcomes Player ‘X’ Wins Cat’s Game
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.”