Question: I need help coding this in C++ programming Language. PLease keep easy because I am a novice coder. Use the following multi-dimension array declaration in

 I need help coding this in C++ programming Language. PLease keep

I need help coding this in C++ programming Language. PLease keep easy because I am a novice coder.

Use the following multi-dimension array declaration in main() to create the simplified two player tic-tac-toe game (see Notes below for important game variation). int ttt[3][3] = { { 0, 0, 0}, {0, 0, 0}, {0, 0, 0 } }: //int ttt[3][3] = {0}: alternate way to code this! Your program should implement and use the following functions - void render(int arr[3][3]): displays the current state of the tic-tac-toe game in simple grid form. void currentMove(int arr[3][3], int row, int col, int value): updates the array with a value at the given row and col position (presumably 1 or 2). No validation is required (i.e. existing moves can be overwritten). int checkWin(int arr[3][3]): returns the winner as an int (i.e. 1, 2, or 0 if there is no winner yet) OR if you prefer (or another arrangement that can determine the winner) - bool checkPlayer1(int arr[3][3]): bool checkPlayer2(int arr[3][3]): returns true if respective player wins, false if not. This may be a little easier to program and implement than check Win

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!