Hearts is a trick-taking card game where the goal is to avoid collecting penalty points. Each heart you take is worth one point, and the queen of spades is worth a hefty thirteen. Players try to "shoot the moon" by taking every heart and the queen, which flips the scoring in their favor. The player with the fewest points when someone reaches the limit wins.
If you are learning, the clearest way to grasp the finer details is to watch a round or ask an experienced player to walk you through it in person.