You are on page 1of 14

Tic-Tac-Toe

Submitted to: Prof. R.S Pandey

Introduction
Tic-tac-toe, also called wick wack woe (in some Asian countries) and noughts and crosses (in the UK, Australia, New Zealand, South Africa, India and the rest of the British Commonwealth countries), is a pencil-and-paper game for two players, X and O, who take turns marking the spaces in a 33 grid. The X player usually goes first. The player who succeeds in placing three respective marks in a horizontal, vertical, or diagonal row wins the game.

TIC-TAC-TOE

EXAMPLE
A1 X B1 O

A1, choice!

B1, choice!

A1, choice!

B1, choice!

A1, choice!

B1, choice!

B1 WINS!

No one wins

Class Diagram Initials


Arr[3][3] Arr[9] Arr[9] Int k String s1,s1

Check Extends
Win() Validate()

Output
Windetails() Display()

Input Extends

Extends

Player1() Player2() GM Main()

Extends

Play()

Play

Thanking You

You might also like