100% found this document useful (1 vote)
771 views16 pages

Tic Tac Toe PPT .GAD

This document describes creating a Tic Tac Toe game using VB.NET. It includes the hardware and software specifications used, an overview of how the Tic Tac Toe game works, the code used to add functionality like resetting the game and checking for a winner, and potential future enhancements like additional game modes.

Uploaded by

Sakshi Thakur
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
100% found this document useful (1 vote)
771 views16 pages

Tic Tac Toe PPT .GAD

This document describes creating a Tic Tac Toe game using VB.NET. It includes the hardware and software specifications used, an overview of how the Tic Tac Toe game works, the code used to add functionality like resetting the game and checking for a winner, and potential future enhancements like additional game modes.

Uploaded by

Sakshi Thakur
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/ 16

TIC TAC TOE

USING VB.NET

1. Rutuja Raju Bhoir - 2371


2. Sakshi Sandip Thakur - 2372
3. Neha Rajech Utekar - 2373
Hardware And Software
Specification
CPU INTEL CORE i7 12 GEN

GPU R TX 3050 4GB VRAM

RAM 32 GB

SDD 1 TB

OS WINDOWS 11

Architecture 64 BIT BASED PROCESSES


Content of the project
Tic Tac Toe is a game played by two players on a grid of
3X3 squares. The challenge is to place three consecutive
Os or Xs by one player in a row, column or diagonal. The
player who does so is the winner. The game ends in a draw
if all the squares are filled with Os or Xs but not in a row,
column or diagonal. We will create the Tic Tac Toe Mini
VB.NET Project to let you understand the concept of event
handling and coding in VB.NET
WORKING
HOW TO WORK TIC TAC TOE ?
To beat the computer (or at least tie), you need to make
use of a little bit of strategy Strategy means figuring out
what you need to do to win.

Part of your strategy is trying to figure out how to get


three Xs in a row. The other part is trying to figure out
how to stop the computer from getting three Os in a
row.
After you put an X in a square, you start looking ahead.
Where's the best place for your next X? You look at the
empty squares and decide which ones are good choices—
which ones might let you make three Xs in a row.
You also have to watch where the computer puts its O.
That could change what you do next. If the computer
gets two Os in a row, you have to put your next X in the
last empty square in that row, or the computer will win.
You are forced to play in a particular square or lose the
game.

If you always pay attention and look ahead, you'll never


lose a game of Tic-Tac-Toe. You may not win, but at
least you'll tie.
Adding Functionality to the GAME
Now that we have our game interface set up, it's time to add functionality to it. In this
section, we will discuss how to write code that allows players to take turns placing
their symbols on the grid. We will also cover how to check for a winning combination
and declare a winner once one is found.
Additionally, we will demonstrate how to implement features such as resetting the
game, keeping score, and allowing players to choose their symbols. By the end of this
section, you will have a fully functional Tic Tac Toe game that you can play with your
friends and family.
WHAT’S THE
CODE ?
Private Sub ButtoReset_Click(sender As Object, e As EventArgs) Handles ButtoReset.Click
Button1.Enabled = True
Button2.Enabled = True
Button3.Enabled = True
Button4.Enabled = True
Button5.Enabled = True
Button6.Enabled = True
Button7.Enabled = True
Button8.Enabled = True
Button9.Enabled = True

Button1.Text = ""
Button2.Text = ""
Button3.Text = ""
Button4.Text = ""
Button5.Text = ""
Button6.Text = ""
Button7.Text = ""
Button8.Text = ""
Button9.Text = ""

Button1.BackColor = Color.White
Button2.BackColor = Color.White
Button3.BackColor = Color.White
Button4.BackColor = Color.White
Button5.BackColor = Color.White
Button6.BackColor = Color.White
Button7.BackColor = Color.White
Button8.BackColor = Color.White
Button9.BackColor = Color.White
End Sub
Form Control Used

Button Label

VB.NET Button In VB.NET, label


Control is used to control is used to
perform a click display descriptive
event in window text for the form in
form control. It does not
participate in user
input or keyboard or
mouse events.
PROBLEM STATEMENT

Program a two-person game of Tic -Tac- Toe. The game is


played on a three by three board. Each player has a marker.
One player has an X’, the other an ‘O’. Players alternate turns
to place their marker on the board. The first player to get three
in a row either diagonally, horizontally, or vertically, wins the
games. In the event all squares are taken on the board without
a winner then it is a tie. The program should set up the game
by asking for the names of the players. Player one should be
assigned an ‘X’ as their marker, player two should be assigned
the ‘O’. After the game has been completed, the program
should congratulate the winner by name.
FUTURE SCOPE

Games are a natural way to foster social interaction, as well


as work on fine motor development. Tic Tac Toe can be
used to promote a number of cognitive skills including
counting and spatial skills, and color and shape
identification. Tic Tac Toe is traditionally played on a 3 × 3
grid. Players take turns placing a mark in one of the cells of
the grid. The goal of the game is for players to position their
marks so that they make a continuous line of three cells
vertically, horizontally, or diagonally.
ADVANTAGES OF TIC TAC toe
1. Teaches strategy skills
2. Develops logical thinking.
3. Improves the ability to concentrate and focus
4. Teaches good sportsmanship
5. Sets the foundation for learning more complex games.
DISADVANTAGES OF TIC TAC toe

1.It can get boring knowing that you are going to win every single time.
2.The game usually takes less than a minute to play. ...
3.You usually need paper and a pencil/pen to play. ...
4.When you know how to win, the game isn't very challenging.
OUTPUT
CONCLUSION

There's a lot to think of when programming a multi-


player game, but hopefully between the Scirra tutorials,
and my variation you can glean enough to get your
own going. I've avoided any synchronization
commands, as they don't really apply to a turn-based-
game, and most of the work revolves around setting up
the communication channels. The actual
communications them selves are really quite straight
forward.
THANK YOU
!

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy