1 / 13
Télécharger la présentation
Tic Tac Toe Game Design Using OOP
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.
Content is provided to you AS IS for your information and personal use only.
Download presentation by click this link.
While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
During download, if you can't get a presentation, the file might be deleted by the publisher.
E N D
Presentation Transcript
Tic Tac Toe Game Design Using OOP By: Parthipan Siva For: SD121
Identify Objects • Tic Tac Toe board • Human Player • Computer Player • Game
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)?
What Information Does The Player Class Need? • Name • Piece (X or O) • Number of Wins
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)
More Related