def addPlayer(settings):
    """define a new PlayerRecord setting and save to disk file"""
    _validate(settings)
    player = PlayerRecord(settings)
    player.save()
    getKnownPlayers()[player.name] = player
    return player
def addPlayer ( settings ) : _validate ( settings ) player = PlayerRecord ( settings ) player . save ( ) getKnownPlayers ( ) [ player . name ] = player return player
define a new PlayerRecord setting and save to disk file