#include cout<<"Please insert the second card row and

#include #include #include using namespace std;void shuffle(int 4);int main(){    char comma, ans = ‘y’;    int r1, c1, r2, c2, cards44, i(0);    bool cardstatus44;  // array to store whether card is flipped or not, you can use char if bool doesn’t work for you.    bool gameover = false; // if bool doesn’t work for you, use char in same way I told for cardstatus.    int moves;    do    {        moves = 0;        //shuffle        shuffle(cards); // I think shuffling cards is better idea than shuffling base start array.        //display board        cout<<"    1 2 3 4 ";        cout<<"  ";        for (int i=0; i<=8; i++)        {            cout<<"-";        }        cout<>r1>>comma>>c1;                if(cardstatusr1-1c1-1 == true) // check if the card is flipped.                {                    cout << "This card is already flipped! Select another card.";                }            }while(cardstatusr1-1c1-1!= false);            do            {                cout<<"Please insert the second card row and column separated by a comma. ";                cin>>r2>>comma>>c2;                if(cardstatusr2-1c2-1 == true) // check if the card is flipped.                {                    cout << "This card is already flipped! Select another card.";                }                if((r1==r2)&&(c1==c2))                {                    cout << "You can't select same card twice!";                    continue;                }            }while(cardstatusr2-1c2-1!= false);            //fix            r1--;            c1--;            r2--;            c2--;            //reveal            cout<<"    1 2 3 4 ";            cout<<"  ";            for (int i=0; i<=8; i++)            {                cout<<"-";            }            cout<