def get_game_type_from_season_type(game):
    """
    Determines game type (as used in storage directories) from season type
    (e.g RS or PO) as stored in game definition.
    """
    if game['season_type'] == 'RS':
        return 1
    elif game['season_type'] == 'PO':
        return 3
    elif game['season_type'] == 'MSC':
        return 4
    else:
        return 0