How to make it so that certain amount of players is game end

How to make the game end at 1 player! 1/10. (No property or block code.)