0% found this document useful (0 votes)
15 views7 pages

Tictac Toe

The project report details the implementation of a Tic Tac Toe game in C language, aimed at providing a console-based interface and basic game logic. It outlines the objectives, tools used, testing scenarios, and the program structure, emphasizing fundamental programming concepts. Future enhancements include adding a graphical user interface, AI for single-player mode, and support for larger grids.

Uploaded by

addieya837
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)
15 views7 pages

Tictac Toe

The project report details the implementation of a Tic Tac Toe game in C language, aimed at providing a console-based interface and basic game logic. It outlines the objectives, tools used, testing scenarios, and the program structure, emphasizing fundamental programming concepts. Future enhancements include adding a graphical user interface, AI for single-player mode, and support for larger grids.

Uploaded by

addieya837
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/ 7

Project Report

Tic Tac Toe Game in C Language


A Mini Project Report Submitted To UCER
For the degree of
Bachelor Of Technology

Guided By: Mr. Bhanu Pratap Rai


Designation: Professor at UCER

Submitted By:

Table of Contents:

1.Abstract
Tic-tac-toe, noughts and crosses, or Xs and
Os is a paper-and-pencil game for two
players who take turns marking the spaces
in a three-by-three grid with X or O. The
player who succeeds in placing three of
their marks in a horizontal, vertical, or
diagonal row is the winner. It is a solved
game, with a forced draw assuming best
play from both players.
2.Introduction

 Tic Tac Toe is a classic two-player


game played on a 3x3 grid, where
players take turns marking a square
with their respective symbols (X or
O). The objective is to be the first to
get three of your symbols in a row,
either horizontally, vertically, or
diagonally. This project aims to
implement the game in the C
programming language, providing
both a console-based interface and
basic game logic.

3.Objectives:
· Design a simple console-based Tic Tac
Toe game.
· Implement game logic to determine
valid moves and winning conditions.
· Provide a user-friendly interface for
input and output.
· Enable replay functionality for
multiple games.

Tools and Technologies

 Programming Language: C
 Compiler: GCC or any C compiler
 IDE: Code::Blocks, Dev-C++, or any text
editor

Testing
The game was tested for various scenarios,
including:
 Valid moves.
 Invalid moves (out of bounds and
occupied spaces).
 Winning conditions for both players.
 Draw conditions.

Hardware & Software Requirements:

 Used: Visual Studio Code


on Windows 11 64-Bit
 Programming IDE
Language Used: C

Implementation
Program Structure

The program is structured into several


functions to handle various tasks:

 printBoard(): Displays the current


state of the board.
 checkWin(): Checks for a winning
condition.
 main(): The main function to drive
the game.

Code Implementation
Below is a simplified version of the Tic Tac Toe game code in C

Conclusion
The Tic Tac Toe game
implemented in C demonstrates
fundamental programming
concepts such as arrays, loops,
conditionals, and functions. It
serves as an excellent project for
beginners to understand game
development and basic C
programming.
Bibliography:
Google – For learning about the various functions used in the
project and researching about calculators
https://www.geeksforgeeks.org – For learning about the structure and
working of the code.

Future Enhancements
 Implement a graphical user interface
(GUI).
 Add AI for single-player mode.
 Enhance input validation.
 Support for larger grids (e.g., 4x4 or
5x5).

You might also like