Tic Tac Toe Game Design Using OOP - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

Tic Tac Toe Game Design Using OOP

Description:

Tic Tac Toe Game Design Using OOP By: Parthipan Siva For: SD121 Identify Objects Tic Tac Toe board Human Player Computer Player Game Class Relationship What ... – PowerPoint PPT presentation

Number of Views:341
Avg rating:3.0/5.0
Slides: 14
Provided by: Parthip
Category:
Tags: oop | design | game | tac | tic | toe | using

less

Transcript and Presenter's Notes

Title: Tic Tac Toe Game Design Using OOP


1
Tic Tac Toe Game Design Using OOP
  • By Parthipan Siva
  • For SD121

2
Identify Objects
  • Tic Tac Toe board
  • Human Player
  • Computer Player
  • Game

3
Class Relationship
4
What Information Does The Game Board Class Need?
  • 3 x 3 Matrix for the board
  • Status of board
  • Can more pieces be placed?
  • Has there been a 3 in a row (win)?

5
What Actions Does The Game Board Class take?
6
Class Relationship
7
What Information Does The Player Class Need?
  • Name
  • Piece (X or O)
  • Number of Wins

8
What Actions Does The Player Class Take?
9
What Actions Does The Human Player Class Take?
10
What Actions Does The Computer Player Class Take?
11
Class Relationship
12
What Information Does The Game Class Need?
  • Player1
  • Player2
  • Game Board
  • Status
  • Number of Games Played
  • Which player move is it
  • Type of game (Human vs Computer, Computer vs
    Human)

13
What Actions Does The Game Class Take?
Write a Comment
User Comments (0)
About PowerShow.com