0% found this document useful (0 votes)
179 views10 pages

Tic Tac Toe Project

This document provides an overview of a two-player X and O game created in C. It includes an introduction to the game rules, reasons for using C, an example, instructions for how to play, a flowchart of game play, features, drawbacks, and references. The game allows two players to take turns marking spaces on a 3x3 grid with X or O, with the goal of getting 3 in a row to win. It can be played in a player vs player or player vs computer mode.

Uploaded by

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

Tic Tac Toe Project

This document provides an overview of a two-player X and O game created in C. It includes an introduction to the game rules, reasons for using C, an example, instructions for how to play, a flowchart of game play, features, drawbacks, and references. The game allows two players to take turns marking spaces on a 3x3 grid with X or O, with the goal of getting 3 in a row to win. It can be played in a player vs player or player vs computer mode.

Uploaded by

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

Mini Project

X and 0 Game

Name:Yash Shetty
Usn:4jk17is018
Introduction To the game
◦ It is a 2 Player game

◦ To win the game you need to set you mark either X


or 0 in a straight line of 3 consecutive marks

◦ If all the 9 places are filled and straight line is not


formed by both the player the game is said to be
a draw
Reasons for using C
◦ We can use various data structure such as arrays or matrices
for our program

◦ As we need to use control structures The C provides very good


and effectient control structures

◦ Addition of new features to the game can be easily done


using C

◦ C is a highly portable language this means that the program


once written can be used with various machines with very less
modification
Example For Understanding
How to play
1. The user need to first select the mode in which he wants to play

2. Then the user need to enter his name

3. The x&0 box will appear on the screen

4. The user need to mark using no from 0-9 where every he wants to place his
mark

5. If it is user vs user it will display the name of the user who has to mark next

6. If it is user vs computer then after users turn the computer will play
automatically and it will ask the user to play for the input

7. When a game is over the screen displays the winner and then the menu is
again displayed on the screen
Chart
Start

Player 1 Player 2

Check Check Check


Invalid Win Invalid

End
Features
◦ Tournament Mode

◦ Player vs Computer

◦ Helps in understanding all the functions of C


Drawbacks
◦ It does not contain any levels

◦ Only two player can play this game simultaneously

◦ Computer is always first player


References
• Nishant Sharma ,System Design.
http://medium.com/system-design-interviews/desgin-1b912bba64cf
Accessed 27 March 2019
ThankYou

You might also like