Skip to content

Commit 439f6fc

Browse files
Create README.md
1 parent 327cdfb commit 439f6fc

File tree

1 file changed

+49
-0
lines changed
  • Projects/C Projects/Basic/Tic Tac Toe Game

1 file changed

+49
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Tic Tac Toe Game Development using C
2+
3+
You have probably played the Tic-Tac-Toe game to pass time during school hours. It’s fun when you play with paper and pencil. Here, we have developed a mini project in C Tic Tac Toe game.
4+
5+
It is the same noughts and crosses or the Xs and Os, the other names for Tic-Tac-Toe.
6+
7+
### Function Used:
8+
9+
I have divided this project into many functions, and below is a list of those functions.
10+
I have only described the gotoxy function in detail.
11+
Just go through the source code once, and other functions used are simple and easy to understand.
12+
13+
14+
- **void menu()** – In this mini project, this function displays the menu or welcome screen of this project.
15+
- **void go(int n)**
16+
- **void start_game()**
17+
- **void check_draw()**
18+
- **void draw_board()**
19+
- **void player_first()**
20+
- **void put_X_O(char ch, int pos)** – This function puts one of the numerical character you input into the respective position in Tic-Tac-Toe.
21+
22+
`For example:`
23+
if you are playing with X and you input 2, the X will go to first row – second column.
24+
If you want to place X in third row – first column, you have to enter 7.
25+
And, it is similar for the other positions.
26+
27+
- **void gotoxy (int x, int y)** – You need to understand this function as it is one of the most important one used in Tic Tac Toe in C.
28+
This function allows you to print text in any place of the screen.
29+
30+
### Images:
31+
32+
- Menu
33+
34+
![menu](https://user-images.githubusercontent.com/79866006/233813434-7e21db30-c100-4df6-b323-a50a7352a979.png)
35+
36+
- PPlaying with X
37+
38+
![Playing-with-X1](https://user-images.githubusercontent.com/79866006/233813448-d2ff3ac9-f4aa-4680-9497-e8775f0f78e3.png)
39+
40+
- Game Draw
41+
42+
![Game-draw](https://user-images.githubusercontent.com/79866006/233813454-5bb3e78e-350b-42a8-a97d-40becec90079.png)
43+
44+
45+
46+
47+
48+
49+

0 commit comments

Comments
 (0)