When the batter intentionally hits the ball twice, the batter is out. When the batter accidentally hits the ball twice, the play can be ruled a foul ball, dead ball, or an out.