Baseball is a bat-and-ball game played between two teams of nine players who take turns batting and fielding .
When one team bats , the other team plays defense and tries to get three players on the other team out .