0% found this document useful (0 votes)
83 views2 pages

Ds Mini Project Tictactoe: By: Name:Nandan.M Usn:1Ds16Cs067 Sem:Iii Section:B

Nandan.M created a graphical user interface for the tic-tac-toe game using an array to store the board. Each player takes a turn marking an 'X' or 'O' in one of the 9 spaces, and the program validates the move and updates the board array accordingly. It then checks for winning conditions after each turn using a function to determine if the game status is a win, draw, or ongoing. The project aims to demonstrate understanding of arrays and manipulating data to recreate a game.

Uploaded by

Nandan Mahesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views2 pages

Ds Mini Project Tictactoe: By: Name:Nandan.M Usn:1Ds16Cs067 Sem:Iii Section:B

Nandan.M created a graphical user interface for the tic-tac-toe game using an array to store the board. Each player takes a turn marking an 'X' or 'O' in one of the 9 spaces, and the program validates the move and updates the board array accordingly. It then checks for winning conditions after each turn using a function to determine if the game status is a win, draw, or ongoing. The project aims to demonstrate understanding of arrays and manipulating data to recreate a game.

Uploaded by

Nandan Mahesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

DS Mini Project

TicTacToe

By:
Name:Nandan.M
USN:1DS16Cs067
Sem:III
Section:B

Introduction
Tic Tac Toe is a turn based board game where two players
mark X or O on a 3X3 grid. The first person to mark three
X or three O in a straight line or a diagonal wins the game.

In this project we have attempted to create a interface for


this game with a GUI(Graphical User Interface). The board
is stored as an array of size nine. Each player is given a turn.
The move is validated using a function, if it is a valid move
then changes are made to the board accordingly.

If the use tries to make an invalid move another turn is given


to the user to give the input. After each turn the winning
conditions are checked using a function. Using this function
we check if the game is in status of win, draw or ongoing.

This project is an attempt to help understand the concepts


of arrays, accessing them, and manipulating data to
recreate a game.

You might also like