Here is a goal: how do you know who wins a game of basketball?

Which way makes more sense to accomplish this goal?
kep score, and whoever has the most points at the end, wins.