Baseball game dev diary version 0.2.0.202011112223: multiple players

  1.  Added array squad to include all available players for the game, including those in lineup, bench and all pitchers. Should this be an array of records, the one that will include attributes, name, positions etc? It should include a value for whether the player is currently in the game, has been taken out or still yet to play.

    Because any player could theoretically pinch, will need to identify players further as Position, Starter, Long relief, Middle relief, Setup or Closer. Should add an identifier for an Opener too as it could become more common. Possibly use P, S, O, L, M, U, C. This will be important when selecting players for relief but also making prioritising bullpen when subbing in a pitcher, or bench when pinch hitting. Pinch runner on the other hand is another story (eg Matz).  
  2. Added start game button to populate the squads and lineups and reset all game data to starting points. 
  3. Added code so that plate appearances cycle through lineups (if last batting player was > #8 then turn lineup around to #1. 

Point #3 was an easy idea, works similar the Monopoly board, where if the dice roll takes the player past board space is > #39, it subtracts 40 or resets to 0 + remaining spaces to move or something.

This was the introduction of taking into account multiple players into the game.

Comments

Popular posts from this blog

MLB (Road to) The Show attribute progression

MLB The Show 21: create a stadium prediction & using created stadiums in online games

V1.1.4.202103032300 Basic player creator, line score tidy up and additional play results, including errors