Tic Tac Toe in PowerPoint | Easy tutorial to make Tic Tac Toe in PowerPoint

  Рет қаралды 5,188

Monika Techie World

Monika Techie World

Күн бұрын

In this video, we are going to learn how to make Tic Tac Toe in PowerPoint. This is step-by-step tutorial, easy to understand. The language using here is VBA to code the game.
Please Like, Share and Subscribe
Code for this game---
Option Explicit
Dim flag As Boolean
Dim a As Integer
Dim b As Integer
Private Sub CommandButton1_Click()
If flag = False Then
CommandButton1.Caption = "X"
flag = True
Else
CommandButton1.Caption = "0"
flag = False
End If
Call win
End Sub
#Do it for CommandButton2 to CommandButton9
Private Sub CommandButton10_Click()
CommandButton1.Caption = ""
CommandButton2.Caption = ""
CommandButton3.Caption = ""
CommandButton4.Caption = ""
CommandButton5.Caption = ""
CommandButton6.Caption = ""
CommandButton7.Caption = ""
CommandButton8.Caption = ""
CommandButton9.Caption = ""
End Sub
Private Sub win()
If CommandButton1.Caption = "X" And CommandButton2.Caption = "X" And CommandButton3.Caption = "X" Then
MsgBox ("Hurray!! Player X Win")
a = a + 1
CommandButton13.Caption = a
End If
If CommandButton1.Caption = "X" And CommandButton5.Caption = "X" And CommandButton9.Caption = "X" Then
MsgBox ("Hurray!! Player X Win")
a = a + 1
CommandButton13.Caption = a
End If
If CommandButton1.Caption = "X" And CommandButton4.Caption = "X" And CommandButton7.Caption = "X" Then
MsgBox ("Hurray!! Player X Win")
a = a + 1
CommandButton13.Caption = a
End If
If CommandButton2.Caption = "X" And CommandButton5.Caption = "X" And CommandButton8.Caption = "X" Then
MsgBox ("Hurray!! Player X Win")
a = a + 1
CommandButton13.Caption = a
End If
If CommandButton3.Caption = "X" And CommandButton5.Caption = "X" And CommandButton7.Caption = "X" Then
MsgBox ("Hurray!! Player X Win")
a = a + 1
CommandButton13.Caption = a
End If
If CommandButton3.Caption = "X" And CommandButton6.Caption = "X" And CommandButton9.Caption = "X" Then
MsgBox ("Hurray!! Player X Win")
a = a + 1
CommandButton13.Caption = a
End If
If CommandButton4.Caption = "X" And CommandButton5.Caption = "X" And CommandButton6.Caption = "X" Then
MsgBox ("Hurray!! Player X Win")
a = a + 1
CommandButton13.Caption = a
End If
If CommandButton7.Caption = "X" And CommandButton8.Caption = "X" And CommandButton9.Caption = "X" Then
MsgBox ("Hurray!! Player X Win")
a = a + 1
CommandButton13.Caption = a
End If
If CommandButton1.Caption = "0" And CommandButton2.Caption = "0" And CommandButton3.Caption = "0" Then
MsgBox ("Hurray!! Player 0 Win")
b = b + 1
CommandButton12.Caption = b
End If
If CommandButton1.Caption = "0" And CommandButton5.Caption = "0" And CommandButton9.Caption = "0" Then
MsgBox ("Hurray!! Player 0 Win")
b = b + 1
CommandButton12.Caption = b
End If
If CommandButton1.Caption = "0" And CommandButton4.Caption = "0" And CommandButton7.Caption = "0" Then
MsgBox ("Hurray!! Player X Win")
b = b + 1
CommandButton12.Caption = b
End If
If CommandButton2.Caption = "0" And CommandButton5.Caption = "0" And CommandButton8.Caption = "0" Then
MsgBox ("Hurray!! Player 0 Win")
b = b + 1
CommandButton12.Caption = b
End If
If CommandButton3.Caption = "0" And CommandButton5.Caption = "0" And CommandButton7.Caption = "0" Then
MsgBox ("Hurray!! Player 0 Win")
b = b + 1
CommandButton12.Caption = b
End If
If CommandButton3.Caption = "0" And CommandButton6.Caption = "0" And CommandButton9.Caption = "0" Then
MsgBox ("Hurray!! Player 0 Win")
b = b + 1
CommandButton12.Caption = b
End If
If CommandButton4.Caption = "0" And CommandButton5.Caption = "0" And CommandButton6.Caption = "0" Then
MsgBox ("Hurray!! Player 0 Win")
b = b + 1
CommandButton12.Caption = b
End If
If CommandButton7.Caption = "0" And CommandButton8.Caption = "0" And CommandButton9.Caption = "0" Then
MsgBox ("Hurray!! Player 0 Win")
b = b + 1
CommandButton12.Caption = b
End If
End Sub
Private Sub CommandButton11_Click()
CommandButton1.Caption = ""
CommandButton2.Caption = ""
CommandButton3.Caption = ""
CommandButton4.Caption = ""
CommandButton5.Caption = ""
CommandButton6.Caption = ""
CommandButton7.Caption = ""
CommandButton8.Caption = ""
CommandButton9.Caption = ""
a = 0
CommandButton13.Caption = a
b = 0
CommandButton12.Caption = b
End Sub
For more Gaming videos::
How to create Memory Games-
• How to create Memory g...
How to create Word Scramble game-
• How to make Word Scram...
How to create a board game using dice-
• How to make a creative...

Пікірлер: 9
@rekhakothari5191
@rekhakothari5191 3 жыл бұрын
Very nice effort...keep it up👍
@monikatechieworld
@monikatechieworld 3 жыл бұрын
Thanks a lot
@kaiasb_00
@kaiasb_00 Жыл бұрын
Thank you for the tutorial, but it would be great if you didn't cut it off mid-sentence.
@shimaaelbadree1414
@shimaaelbadree1414 Жыл бұрын
❤❤
@conniecolon4443
@conniecolon4443 Жыл бұрын
Can I pay you to create a tic tac toe game for me?
@starz8389
@starz8389 3 жыл бұрын
Hi. thank you for making this video but i hoped you were abit slower when doing this cuz sometimes its hard to keep up
@monikatechieworld
@monikatechieworld 3 жыл бұрын
Thank you. I shall surely follow your suggestion
@karanadhikary3493
@karanadhikary3493 3 жыл бұрын
Mam can we make in 2007
@monikatechieworld
@monikatechieworld 3 жыл бұрын
Yes..you can Go to powerpoint options -> customise -> Developer tab
How to Create Tic Tac Toe in PowerPoint
13:08
DJ Oamen
Рет қаралды 49 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
HOW TO MAKE TIC TAC TOE ON POWERPOINT - Without VBA
12:03
Powerpointgames
Рет қаралды 10 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 2,9 МЛН
How to make a Game in PowerPoint! [Tutorial]
7:20
Icoso
Рет қаралды 178 М.
Create an Interactive Slide Deck in PowerPoint
12:19
Presentation Process
Рет қаралды 2,7 МЛН
PPT Games for Teachers
7:50
Evgenii Permiakov
Рет қаралды 21 М.
TIC TAC TOE code explain with ppt
7:27
Dharmik Patel
Рет қаралды 320
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН