ECET 370 Week 3 Homework

Published on January 2018 | Categories: Graphic Art | Downloads: 77 | Comments: 0 | Views: 522
of 1
Download PDF   Embed   Report

Objective: (Tic-Tac-Toe) Write a program that allows two players to play the tic-tac-toe game. Your program must contain theclassticTacToeto implement aticTacToeobject. Include a 3-by-3 two-dimensional array, as aprivatemember variable, to create the board. If needed, include additional member variables. Some of the operations on aticTacToeobject are printing the current board, getting a move, checking if a move is valid, and determining the winner after each move. Add additional operations as needed.

Comments

Content

Objective: (Tic-Tac-Toe) Write a program that allows two players to play the tic-tac-toe game. Your program must contain theclassticTacToeto implement aticTacToeobject. Include a 3-by-3 two-dimensional array, as aprivatemember variable, to create the board. If needed, include additional member variables. Some of the operations on aticTacToeobject are printing the current board, getting a move, checking if a move is valid, and determining the winner after each move. Add additional operations as needed.

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close