Hey, I\'ve been struggling this program , so if you guys can post the C++ source
ID: 3771085 • Letter: H
Question
Hey, I've been struggling this program , so if you guys can post the C++ source code for the following I'd greatly appreciate it. Thanks in advance.
home / study / questions and answers / engineering / computer science / hello everyone first of i have to i appreciate ...
Question
hello everyone first of i have to i appreciate everything that you guys are doing its been great help for me. Currently i'm having a hard time with writing this C++ program and i was hoping that you guys could help me out here
1. Write a program to play the game of Tic-Tac-Toe with two players. (player 1 and player 2)
2. Write one function to initialize board. Assume a 3 by 3 integer array.
3. Write one function to output board.
4. Write one function to check for a winning player.
(All the programs have to have an input file and output file)
Each player is assigned an integer code (1 or 2) and is prompted for the entry which is the location for the entry on the board using the subscripts of the array.
Output the board after each entry.
The game is stopped when there is a winning entry.
Player 1
2 2 2
0 1 0
0 1 1
- Show board
- Player 1 turn
- location 1 1 you mark location 1 1 – check board as well
- player 2 turn
- location 0 2 you mark location 0 2 – check board as we