Original Post
I am making a baseball game where the players have attributes and these attributes act as modifiers on simulated dice rolls to determine the result of each pitch between the pitcher and batter. I am in the process of making the if, else if, else tree for the player decisions. I am taking into account their own attributes along with the attributes of the player on deck, and the number of outs in an inning. These factors would determine how likely a player is to swing or sacrifice, or bunt in that given situation. I was thinking of making seperate methods for each swing, sacrifice, bunt that would return true if thats what the player decides to do. I am having a bit of trouble figuring out how to accommodate all of the possibilities. Anyone have any suggestions? Thanks