My assumption is that the logic is similar to the baseball simulation board games (dice and charts) that I used to play many years ago:
The result of an at-bat will be a hit, walk, strikeout or a potential out in play. If it's a potential out in play, then based on who the ball is hit to, it will be determined if the out is made or there's an error. Or in the event of a fielder with very poor range, it could also become a hit.