How to test when a team "wins" a minigame in Minecraft

Try using /execute if score in a repeating command block. Format:

/execute if score <target> <targetObjective> matches <range>

target - target player
targetObjective - the scoreboard objective used
range - integer range, you can just set this as 1

With a scoreboard objective of alive:
/execute if score Players Alive matches 1

For duos, you can match 2 in a different command block. Enable/disable which one you use with the logic that chooses solos/duos.


Source