to calculate final score

558fe5180e0e8fc922d31c23ef84d240

i already done the scores for each round, i dont know how to calculate the scores for all round, can u help me to solve this?

#include <iostream>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <ctime>
#include <cstdlib>
using namespace std;


//Global variable
const string cardfile=("cards.txt");


//Function Prototypes
void readCards();
int RandomCardP1 (int);
int RandomCardP2 (int);
int CheckType (int [], int ,int);
int CheckSystem (int [], int ,int );
void ShowCardP1(int , string [], string [], string [], string[] , string []);
void ShowCardP2(int, string [], string [], string [], string [], string []);
int Score(int ,int ,int [],int []);
int FinalScore (int,int);


int main(){

    //score
    int sctype[SIZE]={ 3,2,1,2,3,4,1,2,2,2 };
    int scsystem[SIZE]={ 6,4,2,1,5,7,1,2,3,5 };


    //loop for game
    do{
    int scP1=0,scP2=0; 

    for (int round=1;round<6;round++)
    {//loop for 5 round

        cout <<"\t***********";
        cout<<endl<<"\t  ROUND "<<round<<"\n";
        cout <<"\t***********";
        cout<<endl;


    //announce winner and score for each round
    Score(IDcardP1,IDcardP2,sctype-1,scsystem-1);
    cout<<endl;

    cin.get();
    cout<<endl<<endl;


    }//end loop for round


    //score total round
    FinalScore(scP1,scP2);


   } while(respond=='Y'||respond=='y');//end loop for game



}//end main


//scores for each round
int Score(int IDcardP1,int IDcardP2,int sctype[],int scsystem[]){

    int scP1=0, scP2=0;
    cout << "The winner for this round is " <<endl<<endl;
    if (sctype[IDcardP1]>sctype[IDcardP2])
    {
        cout << "  PLAYER 1  " <<endl;
        scP1+=10;
        cout<<endl;
    }
    else
    {
        if (scsystem[IDcardP1]>scsystem[IDcardP2])
        {
            cout << "  PLAYER 1  " <<endl;
            scP1+=10;
            cout<<endl;
        }
        else
        {
            cout << "  PLAYER 2  " <<endl;
            scP2+=10;
        }
        cout<<endl;
    }

    //display score for each round
    cout << "The scores for this round"<<endl;
    cout<<"####################################"<<endl;
    cout<<" Player 1 score :"<<scP1<<endl;
    cout<<" Player 2 score :"<<scP2<<endl;
    cout<<"####################################"<<endl;

}

//score for all round
int FinalScore(int scP1,int scP2){

    //score total round
    cout << "+++++++++++++++++++++++++++++++++"<<endl;
    cout << " Your scores for 5 round : "<< endl;
    cout << " Player 1's score: " << scP1<<endl;
    cout << " Player 2's score: " << scP2<<endl;
    cout << "+++++++++++++++++++++++++++++++++"<<endl;
    cout <<endl;

    //announce the winner for this game
    if (scP1>scP2)
        cout << "\tPLAYER 1 WON!" << endl << endl;
    else
        cout << "\tPLAYER 2 WON!" << endl << endl;
    cout<<endl;
}

WordPress Themes Directory Adds Block Themes to Filter Menu

Best Wordpress Themes 1

This week has been heavy with theme news, as the discussion around improving block themes’ visibility in the directory became heated before the Themes Team landed on a course of action. Meta contributors added a new “Block Themes” menu item to the filter menu on the directory homepage, a solution that some classic theme developers fought tooth and nail to discourage in the ticket over the course of seven weeks.

Clicking on Block Themes displays themes that have the full-site-editing feature tag. Previously, block themes were buried three clicks deep and users had to know how to find them through the feature filter. They are now easily accessible from the directory landing page.

Although most WordPress themes support blocks in the content editor, the “block themes” identifier refers to themes that allow users to edit templates with blocks through the Site Editor.

As the landscape of themes is changing, contributors have been working towards building a shared lexicon for how they refer to themes that support full-site editing. When the team updated the Theme Handbook prior to the WordPress 5.9 release, they settled on using the term “classic” for PHP-based themes and “block” for those that support full-site editing.

Block themes are about to cross a major milestone in the directory. At the time of publishing there are 99 block themes available, representing roughly 1% of the directory’s total number of themes. As part of the project’s big picture goals for 2022, WordPress Executive Director Josepha Haden-Chomphosy set 500 block themes as a goal for the community. The number is not even halfway there but the newly released Create Block Theme plugin should give it a boost, as it allows anyone to design a theme in the editor and export it for others to use.

10 Error Status Codes When Building APIs for the First Time and How To Fix Them

Featured Imgs 23

Things don’t always go well when using an API for the first time, especially if you’re a beginner and it’s your first time integrating an API into another system. Often documentation is lacking in terms of errors, since it’s easier to anticipate things going right, than things going wrong.

In HTTP, many status codes can give you an idea of what was going on when you called an API. The standardized status codes go from 100 to 511, and all have different meanings, but only the ones from 400 to 511 are about errors. See them here in this handy table.