(team_size, walker_type)
return home_players + away_players
Construct home and away teams each of `team_size` players.
Construct home and away teams each of `team_size` players.
Construct home and away teams each of team_size players .
def _make_players(team_size, walker_type):
  """Construct home and away teams each of `team_size` players."""
  home_players = []
  away_players = []
  for i in range(team_size):
    home_walker = _make_walker("home%d" % i, i, RGBA_BLUE, walker_type)
    home_players.append(Player(Team.HOME, home_walker))

    away_walker = _make_walker("away%d" % i, i, RGBA_RED, walker_type)
    away_players.append(Player(Team.AWAY, away_walker))
  return home_players + away_players
def _make_players ( team_size , walker_type ) : home_players = [ ] away_players = [ ] for i in range ( team_size ) : home_walker = _make_walker ( "home%d" % i , i , RGBA_BLUE , walker_type ) home_players . append ( Player ( Team . HOME , home_walker ) ) away_walker = _make_walker ( "away%d" % i , i , RGBA_RED , walker_type ) away_players . append ( Player ( Team . AWAY , away_walker ) ) return home_players + away_players