ASPP/pelita — pull request #230 by Debilski (2013-07-30 17:09:23+00:00)
Title: RF: ‘SimpleTeam’ → ‘Squad’

Basically, the thought is not to have something like ‘SimpleTeam’ in the player API. It sounds like there is another ‘Team’ which is not simple. We cannot just drop the ‘Simple’ prefix, however, as there is also a ‘pelita.datamodel.Team’. Alternatively, we can also rename ‘pelita.datamodel.Team’ → ‘pelita.datamodel.Squad’ and then use ‘pelita.player.Team’ in the API. Or something completely different…

I’m open for suggestions. Please brainstorm.

Use cases:

def factory():
return SimpleTeam("My super cool team", WeirdPlayer(), FailingPlayer())

class WeirdPlayer(AbstractPlayer):
def get_move(self):
print "My team (or at least that thing which is some container for my bots) is", self.team
print "My bots are", self.team_bots
return stop

We can totally rename the whole ‘Player’, ‘AbstractPlayer’, ‘Bots’, ‘Team’, ‘SimpleTeam’ confusion if someone comes up with something more convincing and less confusing.