We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18
INTRODUCTION TO
PROGRAMMING WITH C Project File Tic Tac Toe Game
Name:- Asma Iman
Roll No.:- 15 Course:- B.Tech AI/ML Tic Tac Toe is a game that was popularly played on paper or pen using the board. This is a fun game played by people of all ages. But now the digital version is becoming popular to have fun on the same game with friends.
Components of Tic Tac Toe Game
The working of tic tac toe game is same as traditional tic tac toe having following components: • Objective: To be the first to make a straight line with either 'X' or 'O'. • Game Board: The board consists of a 3x3 matrix-like structure, having 9 small boxes. • The computer: Since it is a two-player game each player gets one chance alternatively. i.e.; first player1 than player2. • Moves: The computer starts the game with O. After that player makes moves alternatively. • Winning: You win by making your symbol in a row or diagonal or column. Also, as a part of strategy you need to block your opponent from forming a straight line while making of your own. SOURCE CODE:- OUTPUT:- THANK YOU