Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

TIC

TAC

TOE
Done By
R Sabarish Kumar
A Santhosh Kumar
T Ashwin Jebaraj
INTRODUCTION

The Tic Tac Toe project is a simple Python


program that allows two players to play the
classic game of Tic Tac Toe. In the game, two
players take turns marking spaces on a 3x3 grid
with their respective symbols ('X' or 'O'). The
objective is to form a horizontal, vertical, or
diagonal line of three of their symbols before
the opponent does.
ACKNOWLEDGEMENT

We would like to express our gratitude to the Python


programming community for providing valuable
resources and support during the development of this
Tic Tac Toe project. I would also like to extend my
gratitude to my computer science faculty Mrs.Abitha
for guiding us and motivating to develop this project.
SOURCE
The Tic Tac Toe project submitted here is a general
implementation that draws on common knowledge of
Python programming.

We developed this project based on:

1. GitHub Repositories: Search for Tic Tac Toe


implementations on GitHub. Many developers share their
code openly, providing insights into different approaches and
styles.

2. Programming Tutorials: Online programming


tutorial websites often have step-by-step guides on
building games in Python, including Tic Tac Toe.
INDEX
print_board(board) Function:
Displays the current state of the Tic Tac Toe
board.

check_winner(board) Function:
Checks if there's a winner on the board (a player
has formed a line).

is_board_full(board) Function:
Checks if the board is full, indicating a draw.

tic_tac_toe() Function:
The main function orchestrating the entire game.
Initializes the game board and manages player
turns.
Accepts player input and updates the board
accordingly.

Main Section (`if name == "main":):

Calls the tic_tac_toe() function to start the game.


INPUT CODE
OUTPUT
CONCLUSION
In conclusion, this Tic Tac Toe program is a practical
exercise for beginners to reinforce their
understanding of Python fundamentals and gain
experience in creating a functional game. Users can
play the game, explore the code, and potentially use
it as a foundation for more complex game
development projects in the future.

You might also like