def createPlayer(chips): player = PlayerProxy('name', chips) player.parse = lambda x: x player.fromMe = lambda x: True return player