DEV Community

Discussion on: JavaScript Baseball

Collapse
 
raddevus profile image
raddevus

Yeah, that makes sense. I think it's because the article didn't mention the possibility of a hit, just this :

Then a random number generator will either make that pitch a "strike", or a "ball". Once you get to 4 balls the batter is "walked". If you get 3 "strikes" the batter is out.