Volleyball scoreboard

How to create volleyball runtime scoreboard?

What I want is scoreboard counting both points and sets won by teams.

eg. one team leads 25-23, it means they won first set…scoreboard resets to 0-0(points), but team who won first set now leads 1-0 (sets).

Anyone here who could help me.

I’m not going to write any code…

You first need 4 integers. Two for the team’s points and 2 for the team’s sets. When you check if a team has won a set, you just add 1 to the set integers.